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

https://github.com/jayvirrathi/node-typeorm-postgresql-rest-api

REST API with Node.js, Postgresql, TypeORM
https://github.com/jayvirrathi/node-typeorm-postgresql-rest-api

nodejs postgresql rest-api typeorm

Last synced: 2 months ago
JSON representation

REST API with Node.js, Postgresql, TypeORM

Awesome Lists containing this project

README

          

# REST API with Node.js, PostgreSQL with TypeORM

> A Basic Node.js project

## Build Setup

```bash
# install dependencies
npm install

# serve at http://localhost:4000/

npm start
```

## Prerequisites

- Nodejs
- Postgresql

**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

```