This project is a Node.js Express application written in TypeScript that integrates MongoDB with Mongoose for user data and order management. The application provides CRUD (Create, Read, Update, Delete) operations for user management and includes a bonus section for order management.
- Node.js installed on your machine
- MongoDB installed and running
- Yarn installed on your machine
-
Clone the repository:
git clone https://github.com/getMonirr/crud-app.git
-
Navigate to the project directory:
cd crud-app
-
Install dependencies:
yarn install
-
Create a .env file in the root directory and add the following:
MONGODB_URI=<your-mongodb-uri> PORT=3000
Replace "your-mongodb-uri" with the connection URI for your MongoDB instance.
-
Build the TypeScript code:
yarn build
-
Start the server:
yarn dev
The application will be running at http://localhost:5000.