From 6d643f2572a28cc66ba7889dffda064872ac736d Mon Sep 17 00:00:00 2001 From: "Jyoti Bisht (Joe)" Date: Mon, 9 May 2022 03:23:47 +0530 Subject: [PATCH] Added installation and error fixes dfor MacOS. Also, fixed outdated folder paths --- contributing.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/contributing.md b/contributing.md index 5ae649e..91b692e 100644 --- a/contributing.md +++ b/contributing.md @@ -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 @@ -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