ChausAnton / React_Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run this api on mac

  • Clone this project
  • run mysql server
  • go to config/config.json and specify database data
  • create file .env
  • add field "SECRET", to .env, which will equal to some secret key
  • add field "MAIL_USERNAME", "MAIL_PASSWORD", "MAIL_HOST", "FROM_EMAIL", "URL", "CLIENTURL"
  • npm run server:install
  • npm run client:install
  • npm run client:build
  • then go to client/build/index.html and replace all "./" to "/"
  • then go back to react_express dir
  • node_modules/.bin/sequelize db:migrate
  • node_modules/.bin/sequelize db:seed:all
  • npm run start
  • app will run on http://localhost:8080

About


Languages

Language:JavaScript 95.1%Language:CSS 2.8%Language:HTML 1.3%Language:Handlebars 0.4%Language:EJS 0.4%