https://github.com/kunaljain0212/face-recognition-web-app
It is a full-stack working web application using Clarifai Web API for face detection in an image, using a website with frontend designed completely using React.js, server using Node.js and Express.js and PostgreSQL for the database. The frontend of the application has been deployed to Vercel, backend to Heroku and for database I've used elephantSQL which is a hosted service for PostgreSQL.
https://github.com/kunaljain0212/face-recognition-web-app
bycrypt clarifai clarifai-api css express expressjs html node node-js node-module nodejs nodemon particles-js pgsql postgres postgresql psql psql-database react reactjs
Last synced: 3 months ago
JSON representation
It is a full-stack working web application using Clarifai Web API for face detection in an image, using a website with frontend designed completely using React.js, server using Node.js and Express.js and PostgreSQL for the database. The frontend of the application has been deployed to Vercel, backend to Heroku and for database I've used elephantSQL which is a hosted service for PostgreSQL.
- Host: GitHub
- URL: https://github.com/kunaljain0212/face-recognition-web-app
- Owner: kunaljain0212
- Created: 2020-07-30T06:39:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T15:29:07.000Z (over 2 years ago)
- Last Synced: 2025-02-01T02:41:24.707Z (4 months ago)
- Topics: bycrypt, clarifai, clarifai-api, css, express, expressjs, html, node, node-js, node-module, nodejs, nodemon, particles-js, pgsql, postgres, postgresql, psql, psql-database, react, reactjs
- Language: TypeScript
- Homepage: http://face-recognition.jainkunal.me/
- Size: 503 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# face-recognition-web-app (FRONTEND)
It is a full-stack working web application using Clarifai Web API for face detection in an image,using a website with frontend designed completely using React.js, server using Node.js and Express.js and PostgreSQL for database. Frontend of the application has been deployed to Vercel, backend to Heroku and for database I've used elephantSQL which is a hosted service for PostgreSQL.[Do check out the application here](http://face-recognition.jainkunal.me/)
### Steps to start:
1. Clone this repo2. Go to face-recognition-web-app/face-recognition-frontend
This is the main project folder for the front end.3. Run `npm install`
This will install all the dependencies.4. Go to face-recognition-web-app/face-recognition-api
This is the server i.e. the back-end for the application
5. Run `npm install`
This will install all the dependencies.
6. You must add your own API key and Databse URI in the `face-recognition-web-app/face-recognition-api/.env` file to connect to Clarifai and your database. The name of the variables are available in .example.env file.You can grab your free Clarifai API key from here [here](https://www.clarifai.com/)
7. Run `npm start`
This will run the server, on port 8000
8. Go to face-recognition-web-app/face-recognition-webapp and run `npm start`
This will run the frontend, on port 3000
### Configuring Database:
I've used [ElephantSQL](https://www.elephantsql.com/) which is a hosted service for postgreSQL but you can create you local database as well.
1. Create a database face-recog (Or any other name you prefer)
2. Create a table named users, with following structure:
```
CREATE TABLE users (id SERIAL PRIMARY KEY, email TEXT UNIQUE NOT NULL, password TEXT NOT NULL, entries BIGNINT DEFAULT O);
```
3. Enter your server details in `face-recognition-web-app/face-recognition-api/.env` file.#### Modules used:
1. [React](https://www.npmjs.com/package/react)
2. [Clarifai](https://www.npmjs.com/package/clarifai)
3. [Tachyons](https://www.npmjs.com/package/tachyons)
4. [Bcrypt](https://www.npmjs.com/package/bcrypt-nodejs)
5. [Cors](https://www.npmjs.com/package/cors)
6. [Express](https://www.npmjs.com/package/express)
7. [pg](https://www.npmjs.com/package/pg)
8. [Nodemon (devDependency)](https://www.npmjs.com/package/nodemon)
9. [React-particles-js](https://www.npmjs.com/package/react-particles-js)