/Draw5

Draw5 codebase

Primary LanguageJupyter Notebook

pmcBucket

Setup for service package

  1. Clone the repository
git clone git@github.com:PrakharUniyal/Draw5.git
  1. Install node modules
npm install

After this, use app.js to run the service on localhost:3000 and sudo mongod on another terminal to create and connect with a local mongo database.

nodemon app
sudo mongod

List of Features:

User signup: Store user info in the 'user' database and create a face crop of user and store in file storage folder 'users'.

Member signup: Store member info in 'member' database.

Member Login/Upload: Allow members to upload single photo(for now), scan it for faces and match them with the ones in 'user' folder for identification and then store the matched ids in the 'face' database and photos in 'photos' file storage folder.

User Login/Home Page: Find the list of photos of the user from 'face' database and use it to display those photos from 'photos' file storage folder.

Service folder refactoring details:

  1. Made structure of routes imported in app.js modular.
  2. Refactored some of the routes and their imported modules.
  3. Created a dedicated 'storage' folder for carrying out all the work involving media files.
  4. Created a dedicated 'scripts' folder for the python scripts being called.
  5. Some other minor changes in code at various places which won't affect the functionality.

Schemas for DB collections

user: uId,uMail,uPass,face member: mId,mMail,mPass face: pId,mId,{faces}