Skip to content

startach/blood-donor-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The App

This repo serves as a backend for Blood-Donor-front-end

what does it include?

  • 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.

Installation

  1. Clone the repo by running the following command
git clone git@github.com:startach/blood-donor-backend.git
  1. Install the required dependencies by running the following command
npm install
  1. 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= 
      
  2. (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 
  1. run the app/server using one of the following command
npm start
or
npm run dev (runs with nodemon)
  1. Open http://localhost:4000/

Documintation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published