Skip to content

Blackmamoth/Simple-Profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Profiler

A very simple implementation of face recognition (called 'profiler' here because I like the videogame 'Watch Dogs').

Installation

Windows

For node server/api

  1. Cd into server directory:
        cd server
  2. Install node dependencies and dev dependencies:
        npm i

For python client/program (make sure pipenv is installed using pip)

  1. Cd into client directory:
        cd client
  2. Create a virtual environment (and activate virtual environment):
        pipenv shell
  3. Install dependencies from requirements.txt:
        pipenv install

macOS

For node server/api

  1. Cd into server directory:

        cd server
  2. Install node dependencies and dev dependencies:

        npm i

For python client/program (make sure pipenv is installed using pip)

  1. Cd into client directory:
        cd client
  2. Create a virtual environment (and activate virtual environment):
        pipenv shell
  3. Install dependencies from requirements.txt:
        pipenv install

Linux

For node server/api

  1. Cd into server directory:

        cd server
  2. Install node dependencies and dev dependencies:

        npm i

For python client/program (make sure pipenv is installed using pip)

  1. Cd into client directory:
        cd client
  2. Create a virtual environment (and activate virtual environment):
        pipenv shell
  3. Install dependencies from requirements.txt:
        pipenv install

Configuration

  1. Create a .env file in the root of client and server directory.

  2. 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
  3. 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
  4. When both terminals are open (and in the client dir virtual env is activated):

    To run the server

       npm run dev

    To run the client

       python3 __main__.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published