https://github.com/kartikmehta8/mongo-rest-api
A Dummy REST API for your next project where you can GET, POST, UPDATE & DELETE Posts. Post contains the unique ID, Name, Description, and Date. Supports CORS.
https://github.com/kartikmehta8/mongo-rest-api
expressjs mongodb nodejs restful-api
Last synced: 3 months ago
JSON representation
A Dummy REST API for your next project where you can GET, POST, UPDATE & DELETE Posts. Post contains the unique ID, Name, Description, and Date. Supports CORS.
- Host: GitHub
- URL: https://github.com/kartikmehta8/mongo-rest-api
- Owner: kartikmehta8
- Created: 2022-07-17T07:22:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-17T07:44:44.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T05:55:22.047Z (4 months ago)
- Topics: expressjs, mongodb, nodejs, restful-api
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
## How to use?
- Create a `.env` file at the **ROOT** of the folder. Create a global variable `DB_CONNECTION_URL` and store your unique URL.
```
DB_CONNECTION_URL =
```
- Open the terminal at the **ROOT** of the folder. Run the following command,
```
npm install
```
- After all the dependencies have been installed successfully, run the server.
```
npm start
```