Skip to content

I put together this VERY SIMPLE app just to practice concepts.

License

Notifications You must be signed in to change notification settings

EmanuelGF/React-Express-MySql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the demo app for REACT EXPRESS MYSQL with AUTH(sessions and passport).

I put togheter this VERY SIMPLE app just to practice concepts and test some ideas and YES it could be better... So feel free to share your knowledge and make this a valuable boilerplate code.
Anyways if you use this code make sure to add validations to both client and server side and protected routes and password encription and https and so on... you get the picture :)

Here are the specs:

  • The app uses:
    • "express": "^4.17.1",
    • "express-mysql-session": "^2.1.0",
    • "express-session": "^1.16.2",
    • "mysql": "^2.17.1",
    • "passport": "^0.4.0",
    • "passport-local": "^1.0.0",
    • "uuid": "^3.3.3"

Structure is as follows:

  • DEMO-PROJECT
    • demo-react-app
      • node-modules
      • public
      • src
        • Components
          • ...
    • demo-server
      • database
      • node-modules
      • server.js

How to

  • clone the project.
  • [npm install] on the demo-react-ui and on demo-server.
  • [npm start] on the demo-react-ui and on demo-server.

Notes: You can run express and react using [npm start] inside both directories. Use Workbench to manage mysql databases. Makes the job a lot easyer when in development.

Read the code comments to better understand the code.

About

I put together this VERY SIMPLE app just to practice concepts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published