MEZ901 / FoodSwift-API

This is the backend API for FoodSwift, a restaurant delivery application. It powers the core functionality of order processing, user management, and delivery tracking.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FoodSwift-API

This is the backend API for FoodSwift, a restaurant delivery application. It powers the core functionality of order processing, user management, and delivery tracking.

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js: Make sure you have Node.js installed. You can download it from https://nodejs.org/.
  • Yarn: We use Yarn as a package manager. You can install it via npm with the following command: npm install -g yarn.
  • MongoDB: You need a MongoDB instance as the database for the application. You can install it locally or use a cloud-hosted solution like MongoDB Atlas.
  • Docker: If you want to containerize your application, make sure Docker is installed. You can download it from https://www.docker.com/.

Getting Started

These instructions will help you set up and run the FoodSwift API on your local machine for development and testing purposes.

1. installation

  • Clone this repository:
    git clone git@github.com:MEZ901/FoodSwift-API.git
  • Navigate to the project directory:
    cd FoodSwift-API
  • Install the required dependencies:
    yarn install

2. Configuration

Duplicate the .env.example file and rename it to .env

cp .env.example .env

Update the environment variables in the .env file as needed for your local setup.

3. Database Setup

  • Ensure that your MongoDB server is up and running.

4. Running the Application

To start the FoodSwift API, run the following command:

yarn run dev

By default, the server will run on http://localhost:8080. You can change the port by modifying the PORT variable in your .env file.

Usage

You can use Postman or any other API testing tool to test the API.

Project Structure

You can find the project structure documentation here.

API Documentation

The API documentation can be found here.

Docker

The Docker documentation can be found here.

Testing

You can run tests using the following command:

yarn test

About

This is the backend API for FoodSwift, a restaurant delivery application. It powers the core functionality of order processing, user management, and delivery tracking.


Languages

Language:JavaScript 99.8%Language:Dockerfile 0.2%