This is a simple Ecommerce API that allows you to create, read, update and delete products and orders in addition to creating and logging in users.
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT
- Bcrypt
- Typescript
- Cloudinary
- Multer
Clone the repository
git clone git@github.com:General-Workspace/simple-ecommerce-product-listing-frontend.git
Install dependencies
yarn install # or npm install
Start the development server
yarn dev # or npm run dev
Build the project
yarn build # or npm run build
Start the production server
yarn start # or npm start
- POST /api/v1/auth/signup
- POST /api/v1/auth/login
- GET /api/v1/products
- POST /api/v1/products
- GET /api/v1/products/:id
- PUT /api/v1/products/:id
- DELETE /api/v1/products/:id
- Create a user by making a POST request to /api/v1/auth/signup
{
"username": "john_doe",
"email": "test@test.com",
"password": "password"
}
- Login a user by making a POST request to /api/v1/auth/login
{
"email": "test@test.com",
"password": "password"
}
- Create a product by making a POST request to /api/v1/products
{
"name": "Product 1",
"description": "This is a product",
"price": 1000
}