This is a REST API for an e-commerce system
-
Clone the repository:
git clone https://github.com/SamuelB7/ecommerce-rest-api.git cd ecommerce-rest-api
-
Copy the
.env.example
to.env
and configure your environment variables:cp .env.example .env
-
Install dependencies:
npm install
-
Make sure to have Docker Compose installed on your machine.
-
Start the Docker containers:
sudo docker compose up
-
Run database migrations:
npm run prisma:migrate:deploy
To start the server in development mode, without docker run:
npm run start:dev
The server will be running at http://localhost:3333
To run the unit tests of the api, use the command:
npm run test
To run the e2e tests, use:
npm run test:e2e
After starting the application, go to http://localhost:3333/documentation to check the documentation of the api endpoints
This project is licensed under the MIT License
For any inquiries, please contact [email protected]