- Clone the repository
git clone git@github.com:PrakharUniyal/Draw5.git
- 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
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.
- Made structure of routes imported in app.js modular.
- Refactored some of the routes and their imported modules.
- Created a dedicated 'storage' folder for carrying out all the work involving media files.
- Created a dedicated 'scripts' folder for the python scripts being called.
- Some other minor changes in code at various places which won't affect the functionality.
user: uId,uMail,uPass,face member: mId,mMail,mPass face: pId,mId,{faces}