/REST-application-with-cooking-recipes

Implementation of an REST application with cooking recipes, created for the subject of Internet Engineering.

Primary LanguageJavaScript

projekt-zaliczeniowy-ar-js

Implementation of an internet application with kitchen recipes, created for the subject of Internet Engineering.

Projekt-zaliczeniowy-ar-js created by GitHub Classroom.

Applied technologies and libraries:

Database schema

We have created a database based on the schema:

We used migrations to control changes to the database structure.

Project description - what we did:

In javascript, we have created models corresponding to individual tables in the database. In the models, we defined the relationships between the models.

Then we established routing. There are HTTP methods in routing:

  • GET - used to request data from a specified resource.
  • POST - used to send data to a server to create a resource.
  • PUT - used to send data to a server to update a resource.
  • DELETE - method deletes the specified resource.

Established endpoints allowed us to download, add, modify and delete individual, selected data from the database.

We have handled bugs related to:

  • database,
  • when the command is not sent correctly,
  • with code 404 file not found.

We handled exceptions:

  • user not found,
  • login or email is taken,
  • recipe not found,
  • ingredient not found,
  • measurement not found.

Implemented functionalities:

  • user registration,
  • user login,
  • downloading user data,
  • updating user data,
  • removing a user,
  • download of data on all recipes,
  • downloading data about a specific recipe,
  • adding a new recipe,
  • updating an existing recipe,
  • removing a specific recipe,
  • download data on all ingredients,
  • downloading data about a specific ingredient,
  • adding a new ingredient,
  • update of an existing ingredient,
  • removal of a specific ingredient,
  • download data on all measurements,
  • downloading data about specific measurements,
  • adding new measurements,
  • update of existing measurements,
  • removal of specific measurements.