Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added installation and error fixes for MacOS. #197

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,29 @@ sudo apt-get update
sudo apt-get install python3.6
```

## For MacOS:
```
brew install python
```


## Clone the repository and setup venv
```
git clone https://github.com/pymit/Rekognition
git clone https://github.com/CCExtractor/Rekognition
cd Rekognition
./setup.sh
../setup.sh
source myenv/bin/activate
```

### For MacOS:
git clone https://github.com/CCExtractor/Rekognition
./setup.sh
cd Rekognition
python3 -m virtualenv myenv
source $PWD/myenv/bin/activate
pip install -r ../requirements.txt

NOTE: Sometimes an error "permission denied" may be shown when you try to run `setup.sh`. For this, try: `chmod 755 setup.sh` in root directory to change permissions.
***
## Postgres setup

Expand All @@ -30,7 +45,20 @@ source myenv/bin/activate
ALTER USER admin CREATEDB;
ALTER DATABASE pmr OWNER TO admin;
***
## Postgres setup for MacOS

brew update
brew install postgresql
brew services start postgresql
psql postgres
CREATE DATABASE pmr;
CREATE USER admin WITH PASSWORD 'admin';
ALTER ROLE admin SET client_encoding TO 'utf8';
ALTER ROLE admin SET default_transaction_isolation TO 'read committed';
ALTER ROLE admin SET timezone TO 'UTC';
ALTER USER admin CREATEDB;
ALTER DATABASE pmr OWNER TO admin;
***
## ReactJS setup for frontend

git clone https://github.com/pymit/RekoUI
Expand Down