Giter Club home page Giter Club logo

backend_authentication_system_make_express_mongoose's Introduction

Make Authentication System

Project Requirement: Make a simple authentication with sign up and sign in form and set data to mongo database.

Agenda:

  • add functional requirement
  • software requirement specification (SRS) model make
  • Technology use
  • Project setup
  • git hub push code

Functional Requirement:

Frontend:

user authentication Signup: → every input section must be validation check

  • user Name input - Enter your name provided this input → required must
  • email input - user email address provide this input → important to authentication → require must
  • user age input - enter user age provided this input
  • married status radio input → value is yes or no → required must
  • Password input - user secret password provide this input → required must
  • confirm password input - user confirmation this password was same → validation check to password input

user authentication sign in: → every input must be validation check

  • Email input → user sign up email provide → required must
  • Password input → user sign up password → required must

Note: all input data sent to backend server. if match to sign up info or sign in info is equal then authentication is success. if don’t match user authentication info not access to user inside

Backend:

Requirement:

SignUp:

  • get to signup data from frontend
  • validation to schema
  • if validation is successful then data is set to database
  • if validation not success then return a not success message to frontend

Login:

  • get to signin data from frontend
  • get and matching to database signup user info
  • if user email or password match to database store signup user email and pass then user sent a successful authentication message
  • if not matching user email or password backend sent to not success message

API Routes:

  • /api/v1/auth/signup → POST
  • /api/v1/auth/signin → GET

Model & Schema :

signup:

  • username → string
    • validation
      • required
      • minLength
      • maxLength
      • trim
  • email → string
    • validation
      • required
      • check valid email → validation check to regular expression
      • error message → if find any error
  • age → number
    • validation
      • required
      • min
  • married → boolean
    • validation
      • default value set
  • password → string
    • password hash
    • validation
      • require,
      • check valid pass
      • error message → if find any error

Technology selected:

Frontend:

  • React
  • tailwind css
  • React router dom
  • React hooks form

Backend firework or library:

Backend Middleware:

  • cors
  • morgan
  • express json
  • router

Project setup:

Use Tools:

  • Vs code → code editor
  • Github → my code store

backend_authentication_system_make_express_mongoose's People

Contributors

rayhanmujumdar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.