Shop API is a RESTful API that provides endpoints for managing shops. It allows users to perform operations such as creating, updating, and retrieving shop data.
- Register user
- Login user
- Get List of all products
- ...
- Node.js
- Express.js
- MongoDB
- Mongoose
- TypeScript
- JWT
-
Clone the repository:
git clone git@github.com:mtnaskari/shop-api.git
-
Navigate to the project directory:
cd shop-api -
Install the dependencies:
npm install
-
Set up the environment variables by creating a
.envfile in the project root directory. You can use the.env.examplefile as a template and then run the check env command.npm run check:env
-
To seed the database with categories and products, you can use the following command.
npm run seed:all
-
Start the development server:
npm run start:dev
The API documentation is available in the