Skip to content

someswar177/Food_Delivery_App-Backend_Development

Repository files navigation

Food_Delivery_App-Backend_Development

Food Delivery API Setup Guide

Here's a basic setup guide for setting up the project and database locally for your food delivery API:

  1. Clone the Repository:

    git clone https://github.com/your/repo.git cd repo

  2. Install Dependencies:

    npm install

  3. Set Up Environment Variables:

    • Create a .env file in the root of your project and add the following variables:

      DB_USER="your_userName" DB_PASSWORD="your_password" DB_HOST="your_hostName" DB_PORT="your_portNumber" DB_NAME="your_databaseName"

    • Add your PostgreSQL database details correctly.

  4. Set Up Database:

    • Navigate to the db_schemas directory:

      cd db_schemas

    • To create tables in the database, run:

      node createTables.js

    • To insert data into tables, run:

      node insertData.js

  5. Start the Server:

    • In root directory (Navigate to root directory), run:

      npm start

  6. Use the API:

    • Interact with the API endpoints at http://localhost:3000.
  7. Swagger Documentation:

    • Access the Swagger documentation for your API at http://localhost:3000/api-docs.
    • Use this documentation to explore the available endpoints and test them.

This setup guide provides step-by-step instructions for setting up your food delivery API locally.

Releases

No releases published

Packages

No packages published