Skip to content

GitForceJedi/products-nestjs

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

This is an API Project built using NestJS, TypeScript, and MySQL. It represents a backend that can read & write to a Products database.

The project is set up to automatically create the required tables in MySQL, upon starting the application.

The application contains the ability to POST new products and retrieve those products.

It is meant to showcase how TypeORM can be used and how it automatically creates the required table/s according to the products model established in the code.

Above is further extended into API endpoints to show the interaction between the different endpoints and the database.

$ npm install
$ npm start

Routes:

POST "/"

{ "title": "Product Title", "description": "the description", "price": "$999" }

GET "/"

GET "/:id"

*If you would like to run this yourself, you will need to replace the following environment variables within the .env file

DATABASE_NAME=yourDatabaseName

DATABASE_USER=yourSQLUsername

DATABASE_PASSWORD=yourSQLPassword

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published