Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 5 days 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.

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