https://github.com/jayvirrathi/node-typeorm-mongodb-rest-api
REST API with Node.js, MongoDB , TypeORM
https://github.com/jayvirrathi/node-typeorm-mongodb-rest-api
express mongodb nodejs rest-api typeorm
Last synced: 2 months ago
JSON representation
REST API with Node.js, MongoDB , TypeORM
- Host: GitHub
- URL: https://github.com/jayvirrathi/node-typeorm-mongodb-rest-api
- Owner: Jayvirrathi
- Created: 2021-02-20T08:56:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-20T10:46:28.000Z (over 5 years ago)
- Last Synced: 2025-02-27T16:52:56.221Z (over 1 year ago)
- Topics: express, mongodb, nodejs, rest-api, typeorm
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST API with Node.js, mongodb with TypeORM
> A Basic Node.js project
## Build Setup
```bash
# install dependencies
npm install
# serve at http://localhost:4000/
npm start
```
## Prerequisites
- Nodejs
- Mongodb
**Request:**
```json
POST user/
{
"firstName": "elon",
"lastName": "musk",
"email": "elon@gmail.com",
"password": "test@1234"
}
PUT user/:id
{
"email": "elonmusk@tesla.com"
}
GET users
GET user/:id
DELETE user/:id
```