Good morning! This repository houses the development of a test project for Kenility, designed to meet the following requirements:
Create a Node API with Nest.js Connect the Node API to MongoDB using nest/mongoose Implement JWT as an authentication strategy Develop endpoints for product and order management: Create a product Request a product Create an order Update an order Get the total sold price in the last month Get the higher amount order Bonus: Dockerize MongoDB and the Node API
Install dependencies:
npm i
Start the application:
npm run start
If you want to test using docker-compose
docker-compose up
Choose a testing method:
Swagger: Access the Swagger UI at (SwaggerUI)
Postman: Import the Kenility-Test.postman_collection.json collection
Authentication:
-
Register a user and password
-
Log in to obtain a JWT
-
Test endpoints:
-
Use Swagger or Postman to freely test the available endpoints.
For any questions or assistance, please contact [email protected].