Node api with express mysql sequelise
To get started with this api follow the steps below
$ git clone https://github.com/Livingston-k/vision-Voting-app-api
$ cd vision-Voting-app-api
$ yarn install
- Note that is project is using mysql database.
- create a database in mysql or postgress forexample vision_voting_app
- In the project directory go to config/config.json and edit the database configurations to match your setup
- To migrate the database tables run :
npx sequelize-cli db:migrate
$ yarn start
- In the project main directory ceate a file name .env and put the following
PORT=3001
LOAD_BALANCER_PORT=5000
NODE_ENV="development"
JWT_SECRET=