Skip to content

This is the backend API for the Fast 'n Fresh Mobile App

Notifications You must be signed in to change notification settings

Fast-n-fresh/ff-backend-api

Repository files navigation

Fast'n'Fresh API

There are Two ways To Get Started With:

  1. Using Docker 🐳
  2. Using npm/yarn

Method 1 - If you have Docker And Docker Compose Installed on your system:

Change permissions for the startup, exit and log files

foo@bar:~$ chmod +x ./entrypoint.sh
foo@bar:~$ chmod +x ./exit.sh
foo@bar:~$ chmod +x ./logs.sh

To start the application :

foo@bar:~$ ./entrypoint.sh

To get logs :

foo@bar:~$ ./logs.sh

To stop the application :

foo@bar:~$ ./exit.sh

The docker and docker-compose commands are added to these files


Method 2 : Using NPM/YARN:

Note : Make sure you have 'npm' or 'yarn' installed on your local machine

To test the project on your local machine run :

foo@bar:~$ npm install

alternatively

foo@bar:~$ yarn install

create a dev.env file which should contain the following environment variables configured :

To spin up the server run :

foo@bar:~$ npm run dev

This will fire off 🚀 the 'dev' script which will spin a local server on your machine on port PORT_NUMBER


To use the API, use this URL as your base URL :

http://localhost:PORT_NUMBER

on your respective request manager (Preferably Postman)

The Post Man Collection is added in the repository

Happy Coding 😉 !!

About

This is the backend API for the Fast 'n Fresh Mobile App

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages