Skip to content

JoomFX/chefsbook-backend

Repository files navigation

RECIPE NUTRITION CALCULATOR API

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

Description

Nest framework TypeScript starter repository.

Final Project Assignment for Telerik Academy Aplpha with JavaScript - Design and implement single-page web application that will allow restaurant chefs to create and manage recipes composed of products with known nutrition values. During the interaction with the system users should see changes in nutrition information in real time. Newly created recipes could be tagged with a category from a list.

Project Features

  • Authenticate users - Register, Login, Logout
  • Users can CRUD recipes
  • Users can search list of recipes by name or filter by category
  • Users can search for product and filter by product group

Stack

  • MariaDB/MySQL
  • TypeORM
  • NestJS

Getting started

Installation

Clone the repository

git clone https://github.com/JoomFX/chefsbook-backend.git

Switch to the repo folder

cd chefsbook-backend

Install dependencies

npm install

Database

MariaDB/MySQL

The example codebase uses Typeorm with a MariaDB database.

Create a new MariaDB database with the name recipes_db (or the name you specified in the ormconfig.json).

MariaDb database settings are in ormconfig.json.

Start local MariaDB server and create new database 'recipes_db'.

You will need a .env file as well. You can modify the one included in the project.

You will also need to import the Sample Data (Products Database). All you need to do is to run npm run seed.

NPM scripts

  • npm start - Start application
  • npm run start:dev - Start application in nodemon
  • npm run typeorm - run Typeorm commands
  • npm run seed - initial seed for the database
  • npm run test - run Jest test runner

Documentation

There is a folder called documentation where you can find an exported Postman Collection with all endpoints.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published