Skip to content

Meal Management app written in Nest js, Knexjs, Postgresql

Notifications You must be signed in to change notification settings

olad5/meal-management-app

Repository files navigation

About

Meal Management App is a Backend API You are building a backend API for a meal management application that allows users to create, read, update, and delete meal addons. meal addons. The API also allows users to create categories for these addons.

It has the following functionalities

  • A user can create a Base User or Admin account
  • A user can create an addon
  • A user can retrieve an addon
  • A user can retrieve all addons
  • A user can update an addon
  • A user can delete an addon
  • A user can create an addon category

ER diagram

Installation

  • Clone this repo

    git clone https://github.com/olad5/meal-management-app.git
  • Postman API docs: Link

  • Live Link: Link

Running the project

  1. Install and start Docker if you haven't already.
  2. Copy the .env template file. Input the passwords and app secrets.
cp .env.sample .env
  1. Build and run the image to run the Postgresql Database service.
docker compose up --build
  1. Run migrations
  npx knex migrate:latest --knexfile=src/infrastructure/adapter/persistence/knex/knexfile.ts
  1. Start app
  npm run start:dev

You can visit the app by going to http://localhost:5300.

Run integration tests

  cp env/sample.test.env  env/.test.env 
  npm run test

Built with

Backend

About

Meal Management app written in Nest js, Knexjs, Postgresql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published