This project is a backend application built with Node.js, Express, TypeScript, and Mongoose. It includes APIs for managing products and orders, and uses Zod for data validation.
- Express with Mongoose
- API Documentation - Read Full Documentation - Get all products - Get all orders
- Node.js (v20.x or higher)
- npm
- MongoDB (local or remote instance)
-
Clone the repository:
git clone https://github.com/tajkir-alam/express-with-mongoose cd express-with-mongoose
-
Install dependencies:
npm install
-
Create a .env file in the root directory and add your MongoDB connection string:
MONGO_URI=provide your mongoDB Atlas URI here
-
Running the project:
npm run start:dev
npm start
# or
yarn build
yarn start
npm run lint
npm run lint:fix
GET /
GET /api/products
GET /api/orders