This is the backend repository for the BetterPoll android application currently under development.
The APIs are being created using node js, express js and mySQL as the database and will be deployed on heroku for testing.
The frontend repo : https://github.com/adityabisht02/Betterpoll
-
Install Node js
-
Clone this repository using
git clone https://github.com/adityabisht02/BetterPoll-Backend
-
change directory to the folder containing the index.js file using
cd BetterPoll-Backend
-
Run
npm i
to install dependencies. -
Create a mySQL database called "betterpoll". Check here to install mySQL
-
Run
npm run initialise-db
function to create tables for users and admins. -
Run
npm start
to start the server.