Skip to content

juvers/FortunaRursus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fortune Back

Backend for React.js with Express Authentication and Authorization

--

Description

Server side employed Node.js Express. Secured authentication with jsonwebtoken(JWT) was utilized. Sequelize for interacting with MySQL db.

Technology

  • Express
  • bcryptjs
  • jsonwebtoken
  • Sequelize
  • MySQL

Directory Structure

  • config: configure MySQL db, Sequelize and Auth Key
  • routes: post routes for signup and signin with public and protected routes
  • middlewares: verifysignup.js to check duplicate username or email and authJwt.js to verify token and userrole in db
  • controllers: controllers to handle signup and signin actions and also return public or protected resources
  • models: useful for sequelize contracting
  • server.js: to import all neccesary modules, initialize app and routes and listen for ocnnections

Project

About

Node application as backend server for fortune-front app. JWT(jsonwebtoken) was utilized for authentication and authorization. Sequelize was used to interact with MySQL so to prevent sql injection and avoid clustered CRUD utilities.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors