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

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

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

```