Skip to content

Sentry11/Authorization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication

Ready authorization template based on MERN stack

Overview

This design system is designed to quickly integrate into existing systems to increase developer productivity.
Developed on the MERN stack

Development

In this mode, I used dependencies such as:

  • Concurrently - to configure scripts to run scripts simultaneously
  • Nodemon - to restart the server after changes

  • I also used proxy. The proxy are specified in the client directory in the json file. In the development mode, the client can send requests to the server using a proxy

    Production

    In production mode were used:

  • Config - to create changes, server settings (jvttoken, link to the database, etc.)
  • Cors - to enable the user agent to obtain permissions to access the selected
    resources from a server on an origin (domain) other than what the site is currently using
  • Express - for robots with a server
  • Express-validator - to check the validity of registration data
  • Jsonwebtoken - for robots with tokens (verifying an authorized user, creating a token for a new user, etc.)
  • Mongoose - for robots with maza danih mongo db
  • Bcscript - to encrypt user passwords
  • React-router-dom - for navigation

  • Also, the project uses several custom hooks and contexts.

    Deploy


    In order to deploy the project:
    1. Copy it or download it
    2. Install all dependencies with npm.
    3. Next, set your parameters in the config directory - a link to the database, the secret phrase of the jwttoken and the desired port, if necessary.

    Images of form