NodeJS - Food Delivery App (Backend)

Backend system for Food Delivery mobile app.

Dependencies

Setup instructions

1. Clone Repository

# Clone the app
git clone https://github.com/ameenfarook/food_delivery_app_backend.git

2. Install all dependencies

# navigate to app directory
cd food_delivery_app_backend

npm install

3. Setup Instructions

  • MongoDB Connection
# open package.json and add connectionString inside [projectConfig.mongoConnectionUrl]

"projectConfig": {
    "mongoConnectionUrl": "<put the mongodb connection string here>"
  }
  • Application IP Address and Port Number (Default 3000)
# open package.json and add ip and port inside [projectConfig]

"projectConfig": {
	"serverIp": "<put the server ip address here (string)>",
    "serverPort": "<put the server port number here (integer)>"
  }

4. Database Setup (MongoDB)

Database
foodelivery_db
Collections
  • users  #for user specific data (email and username are unique indexes)
collection structure
{
  "_id": {
    "$oid": "Default ObjectID"
  },
  "email": "String (unique)",
  "username": "String (unqiue)",
  "password": "String (hashed)"
}