Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

25 lines (22 loc) · 1.03 KB

React-Sequelize with Passport Authentication

A full-stack application template complete with passport local strategy authentication

Stack:

  • node and express
  • sequelize ORM
  • passport js authentication
  • create-react-app

How to Use This Template

  • click "use template" next to the clone button, this will create a new repository on your github account

  • clone the repository down to your machine

  • create a mySql database named as you like

  • run   npm install

  • run   touch .env  in the root of your repository

  • open the .env file

  • add the four environmental variables that will be used to connect to the database:
           DB_PASSWORD=yourpassword
           DB_HOST=127.0.0.1
           DB_USER=root
           DB_NAME=yourDBname

  • In development, the server and client are started separately.

  • run   npm start in the root of the project to start the server

  • run   npm start in the root of the client folder to start the client