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-Android
-
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 the required tables (after you have created a database named betterpoll). -
Run
npm run fill-sample-data
function to add sample data to tables for testing. -
Run
npm start
to start the server.