This repo serves as a backend for Blood-Donor-front-end
- A node.js server rendered via handlebars for the organization's coordinator, where he can update parts of the React Front-end App.
- A connection point between Firebase to the front-end app.
- Clone the repo by running the following command
git clone git@github.com:startach/blood-donor-backend.git
- Install the required dependencies by running the following command
npm install
- setup env variables
- Create new .env file in the root directory
- add the following variables to it(you can get them from the firebase project settings page)
FIREBASE_API_KEY = FIREBASE_AUTH_DOMAIN = FIREBASE_DATABASE_URL= FIREBASE_PROJECT_ID = FIREBASE_STORAGE_BUCKET = FIREBASE_MESSAGING_SENDER_ID = FIREBASE_APP_ID = GOOGLE_GEOCODER_API= MADA_POST_URL_ROUTE= CORS_ORIGIN=
- (optional) run the following command to generate the exe files (this will only work after adding the .env file ot the project)
npm run buildExe
or
npm run build
- run the app/server using one of the following command
npm start
or
npm run dev (runs with nodemon)