Monabbir-Ahmmad / Blog-web-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog-web-app

Technologies used

ReactJS Redux NodeJS ExpressJS MySQL Sequelize


How to run

  • After downloading or cloning this repository make sure to use "npm i --force" on both the frontend and backend folders separately.
  • Before starting the server make sure that the database is created. Use "npm run create-db" on the server folder to create the database.
  • If you want you can also change the database configuration form the file at path "/backend/src/config/databaseConfig.js".
  • Before starting the program make sure that the database is running.
  • Use "npm start" on both the frontend and backend separately to start the client and server programs.
  • For testing the backend api, a Postman collection file named "Blog API.postman_collection" is provided.
  • The postman collection provides dynamic refresh token and access token variables for protected api routes that auto updates when you signin or signup in the blog api using the public routes. So you don't need to worry about copying and pasting the tokens in the authorization header. The tokens will be automatically inherited for the protected routes. The access token is auto refreshed before each request to the api.

About


Languages

Language:JavaScript 73.8%Language:CSS 25.7%Language:HTML 0.5%