Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/persteenolsen/node-express-sequelize-users-api-basic
Node Express REST API using Sequelize MySQL without Refresh Tokens with Email Signup, Verification, Authentication and Forgot Password
https://github.com/persteenolsen/node-express-sequelize-users-api-basic
Last synced: 29 days ago
JSON representation
Node Express REST API using Sequelize MySQL without Refresh Tokens with Email Signup, Verification, Authentication and Forgot Password
- Host: GitHub
- URL: https://github.com/persteenolsen/node-express-sequelize-users-api-basic
- Owner: persteenolsen
- Created: 2021-12-13T18:50:11.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T17:42:56.000Z (about 2 months ago)
- Last Synced: 2024-12-01T18:23:28.619Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-express-sequelize-users-api
Node Express Sequelize MySQL API with Email Sign Up, Verification, Authentication and Forgot Password
# Last updated
01-12-2024
# Functionality of the Web App
- JWT authentication
- Email sign up and verification
- Forgot password and reset password functionality
- Role based authorization with two roles "User" and "Admin"
- CRUD Account management routes with role based access control# Tech used for building the Web App
- Node version 20.18.1
- Sequelize used to implement the ORM at the Web API
- The Node.js Web API is hosted at Azure App Service with the Free App Service Plan
- The React Client is hosted at a traditional Webhotel
- MySQL as the Database for both Dev + Prod
- CORS Policy implemented by Node.js and at Azure
- JWT Token for access secure routes# Installing
- Make sure you have a new version of Node installed
- Download the code by zip or fork
- Run the command npm install by the command promt# Development server:
- npm run start
- You can view the development server at `localhost:443`
# MySQL Database at the remote server
- By using the above command: "npm run start" the DB will be create if not allready exist
# Production
- Create the Web App at Azure App service
- Publish the Node.js files to the Azure App Service# Technical adjustments
Files adapted at this Web API for receiving requests from the React client at GH Pages:
- accounts/accounts.controller.js
# Updating Node version by Azure Portal
- Go to App Service and select your App
- Then Settings - Enviroment Variables - WEBSITE_NODE_DEFAULT_VERSION
- Type the Version you want like: ~20
- You have selected the most recent Node Version 20.x
- Click - Save - Confirm
- Thats it :-)