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
- Host: GitHub
- URL: https://github.com/jayvirrathi/node-typeorm-postgresql-rest-api
- Owner: Jayvirrathi
- Created: 2021-02-07T07:35:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T11:43:18.000Z (over 5 years ago)
- Last Synced: 2025-02-27T16:52:54.652Z (over 1 year ago)
- Topics: nodejs, postgresql, rest-api, typeorm
- Language: TypeScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```