Skip to content

ViniGB/Project-Trybesmith

Repository files navigation

Project Trybesmith

  • Project to develop a CRUD for a medieval items store, using Typescript and MySQL.

Requirements

  1. Create endpoint to register products in /products ✔️
  2. Create endpoint to list products in /products ✔️
  3. Create endpoint to register users in /users ✔️
  4. Create endpoint to list orders in /orders ✔️

Bonus Requirements

  1. Create endpoint to login user using JWT, in /login ✔️
  2. Create product registration validations (Joi used) ✔️
  3. Create user registration validations (Joi used)
  4. Create endpoint to register order using JWT, in /orders ✔️

Language and Tools

mysql MySQL

typescript Typescript

nodejs Node.js

Get started

With Docker
👉 Dockerfile and Docker-compose were provided by Trybe

⚠️ Before you start, you must check if your docker-compose version is 1.29 or higher

  • Run node and db by running:
$ docker-compose up -d
  • Open interactive terminal using:
$ docker exec -it trybesmith bash
  • Install dependencies, inside the container, with:
$ npm install
Install it locally
  • Open terminal and create a directory in your preferred location:
$ mkdir <Your directory name here>
  • Access directory then clone the repository:
$ cd <Your directory name here>
$ git clone [email protected]:ViniGB/Project-Trybesmith.git
  • Access the newly created directory:
$ cd Project-Trybesmith
  • Install dependencies:
$ npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published