Skip to content

SamuelB7/ecommerce-rest-api

Repository files navigation

NESTJS E-COMMERCE API

This is a REST API for an e-commerce system

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/SamuelB7/ecommerce-rest-api.git
    cd ecommerce-rest-api
  2. Copy the .env.example to .env and configure your environment variables:

    cp .env.example .env
  3. Install dependencies:

    npm install
  4. Make sure to have Docker Compose installed on your machine.

  5. Start the Docker containers:

    sudo docker compose up
  6. Run database migrations:

    npm run prisma:migrate:deploy

Usage

To start the server in development mode, without docker run:

npm run start:dev

The server will be running at http://localhost:3333

Testing

To run the unit tests of the api, use the command:

npm run test

To run the e2e tests, use:

npm run test:e2e

Documentation

After starting the application, go to http://localhost:3333/documentation to check the documentation of the api endpoints

License

This project is licensed under the MIT License

Contact Information

For any inquiries, please contact [email protected]

About

REST version of the ecommerce API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published