/BetterPoll-Backend

Backend for the BetterPoll mobile app. Created using node js and mysql.

Primary LanguageJavaScript

BetterPoll-Backend

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

How to Setup:

  1. Install Node js

  2. Clone this repository using git clone https://github.com/adityabisht02/BetterPoll-Backend

  3. change directory to the folder containing the index.js file using cd BetterPoll-Backend

  4. Run npm i to install dependencies.

  5. Create a mySQL database called "betterpoll". Check here to install mySQL

  6. Run npm run initialise-db function to create tables for users and admins.

  7. Run npm start to start the server.

Backend workflow:

image

image

image