This is an API that delivers the information extracted from different websites selling cycling products (for now limited to this category). In this case I have implemented the Domain Driven Design (DDD) practice in order to facilitate the scalability and maintainability of the code.
GET /products
GET /products/:id
- Node.js installed locally for development and testing.
-
Clone this repository:
git clone https://github.com/polaarts/cycling-api.git
-
Install the project dependencies:
npm i
-
he following command will create a folder called
prisma
in the root of the project with aschema.prisma
file containing the database configuration.npx prisma migrate dev --name init
Once the dependencies are installed, to run locally you must execute the following command:
npm run dev
This will deploy the project to localhost:3000
. As long as there is a .env
file with the following environment variables: DB_USER
, DB_NAME
, DB_PORT
, DB_PASSWORD
, DB_HOST
, PORT
.
Any considerations, opinions, comments or bugs in the documentation or code, please report them to Samuel Angulo via mail
[email protected]
or through an issue in this repository.