A very simple implementation of face recognition (called 'profiler' here because I like the videogame 'Watch Dogs').
- Cd into server directory:
cd server
- Install node dependencies and dev dependencies:
npm i
- Cd into client directory:
cd client
- Create a virtual environment (and activate virtual environment):
pipenv shell
- Install dependencies from requirements.txt:
pipenv install
-
Cd into server directory:
cd server
-
Install node dependencies and dev dependencies:
npm i
- Cd into client directory:
cd client
- Create a virtual environment (and activate virtual environment):
pipenv shell
- Install dependencies from requirements.txt:
pipenv install
-
Cd into server directory:
cd server
-
Install node dependencies and dev dependencies:
npm i
- Cd into client directory:
cd client
- Create a virtual environment (and activate virtual environment):
pipenv shell
- Install dependencies from requirements.txt:
pipenv install
-
Create a
.env
file in the root of client and server directory. -
Add the following environment variables to the
.env
file for node server:MONGO_URI = your_mongodb_uri APP_PORT = port_number FILE_OBJECT_NAME = name_of_the_key_for_files_in_form_data APP_MEDIA_PATH = path_to_directory_for_file_storage
-
Add the following environment variables to the
.env
file for python client:APP_MEDIA_PATH = path_to_directory_for_file_storage MONGO_HOST = mongo_db_host MONGO_PORT = mongo_db_port MONGO_DATABASE = mongo_db_database_name MONGO_COLLECTION = mongo_db_collection_name
-
When both terminals are open (and in the client dir virtual env is activated):
npm run dev
python3 __main__.py