Skip to content

sachinsingh3232/Face-Login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Face-Login MERN APP

A MERN application using basic CRUD operations , authentication.

Backend URL :

https://codebugged-ai-back.vercel.app

Table of Contents

Features

User-side features

  • Signup
  • Login
  • Logout
  • Home Page for movie details

Developer-side features

  • Form validations in frontend and backend
  • Use of 404 page for wrong data
  • Relevant redirects
  • Use of layout component for pages
  • Use of various React hooks
  • Routes protection
  • Use of different HTTP status codes for sending responses
  • Standard pratices followed

Tools and Technologies

  • HTML
  • CSS
  • Javascript
  • Node.js
  • Express.js
  • React
  • Mongodb

Dependencies

Following are the major dependencies of the project:

  • face-api.js
  • react-webcam
  • axios
  • react
  • react-dom
  • react-router-dom
  • dotenv
  • cors
  • dotenv
  • express
  • mongoose

Dev-dependencies

Following are the major dev-dependencies of the project:

  • nodemon

Prerequisites

  • Node.js must be installed on the system.
  • You should have a MongoDB database.
  • You should have a code editor (preferred: VS Code)

Installation and Setup

  1. Install all the dependencies in client and Backend

    npm install
  2. Create a file named ".env" inside the Config folder of backend. Add following data to your .env file

  3. PORT=9000 CORS_URL=http://localhost:3000 MONGODB_URL=YOUR_MONGO_URL

  4. Start the application

    nodemon server.js in backend and npm start in client
  5. Go to http://localhost:3000

Backend API

- POST     /api/user/register
- POST     /api/user/login

Frontend pages

- /                 Home Screen (Public home page for movie details for logged-in users)
- /register           Signup page
- /login            Login page

npm scripts

Inside frontend folder:

-"start": "react-scripts start" -"build": "react-scripts build" -"test": "react-scripts test" -"eject": "react-scripts eject"

Useful Links