This is a basic product order management server application built with Express, Mongoose, and TypeScript.
- Products:
- Create product
- Get all products
- Update product
- Delete product
- Get single product by ID
- Search product by keywords
- Orders:
- Create order
- Get all orders
- Get order by email
- Backend Framework: Express
- Programming Language: TypeScript
- Schema Validation: Zod
- Database: MongoDB with Mongoose
- Code Quality: ESLint, Prettier, Husky
- Clone the repository:
git clone https://github.com/shohan-pherones/batch-3-assignment-2.git
- Create a
.env
file in the root of the project and add the following environment variables:
NODE_ENV=
PORT=
DB_URL=
You can also check the .env.example
file for reference.
- Install the required packages:
npm install
- Run the application for local development:
npm run start:dev
- GitHub Repository URL (Server): https://github.com/shohan-pherones/batch-3-assignment-2.git
- Live Server Link: https://ecommerce-backend-express.vercel.app/