Skip to content

fidelisojeah/fueled

Repository files navigation

Restaurants Backend

Easily make restaurant choices

Getting Started

Table of Contents

Built Using

Installation and Configuration

Before Installation, ensure you have node.js and PostgreSQL installed on your device.

  • Clone the Repository
git clone [email protected]:fidelisojeah/fueled.git
  • Install Dependencies
npm install
  • Configure Environment Variables

    • Configure Environment Variables as specified Here
  • Setup Database

    • You are required to create database schemas as well as users as specified in the config files
  • Migrate Database

    • Using the ORM Sequelize, migrate database designs
npm run migrate
  • Seed Database
npm run seed

Running the application

Documentation is available at: /api-docs

For testing

The applications tests are run with jest

npm run test

For development

The application uses nodemon to enable quick reload on changes

npm run start:dev

Running with Docker

it is possible to run the application with docker.

Simply have docker installed on your machine.

docker-compose up

Seeding the database with docker

  • Stop the application docker-compose down
  • Open the docker-compose.yml file and uncomment the seed line.
  • Comment out the run line
  • change restart to never
  • Run docker-compose up

** Similar steps to run migrations **

For production

Coming soon

Configure Environment Variables

The following Environment variables need to be set and exported for application to function properly

DATABASE_USERNAME= The name of database user
DATABASE_PASSWORD= the password of database user
DATABASE_NAME= The database name
LOGGER_LEVEL=debug

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages