https://github.com/talhat298/product-order-crud
This Node.js application, built with TypeScript, Express, and MongoDB, offers an API to manage products and orders with functionalities for creating, retrieving, updating, and deleting.
https://github.com/talhat298/product-order-crud
cors curd-operation dotenv eslint expressjs mongodb nodejs nodemon typescript zod
Last synced: 3 months ago
JSON representation
This Node.js application, built with TypeScript, Express, and MongoDB, offers an API to manage products and orders with functionalities for creating, retrieving, updating, and deleting.
- Host: GitHub
- URL: https://github.com/talhat298/product-order-crud
- Owner: TalhaT298
- Created: 2024-05-20T13:31:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T13:39:39.000Z (about 2 years ago)
- Last Synced: 2025-02-11T17:18:02.831Z (over 1 year ago)
- Topics: cors, curd-operation, dotenv, eslint, expressjs, mongodb, nodejs, nodemon, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 8.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# product-order-crud
This is a Node.js application built with TypeScript, Express, and MongoDB. It provides an API for managing products and orders. The application includes functionalities such as creating, retrieving, updating, and deleting products, as well as creating and retrieving orders.
## Prerequisites
Make sure you have the following installed on your local machine:
- Node.js (v14 or later)
- npm (v6 or later)
- MongoDB (running locally or a connection URL)
## Installation
1. **Clone the repository**
```
git clone https://github.com/TalhaT298/Assingment-2-Level-2
```
cd repository-directory
2. **Install dependencies**
```
npm install
```
Set up environment variables
Create a .env file in the root directory of your project and add the following variables:
PORT=5000
DATABASE_URL=mongodb://localhost:27017/your-database-name