https://github.com/than-dev/postgres-api
NodeJS API using Postgres native driver and Typescript!
https://github.com/than-dev/postgres-api
api backend database nodejs postgresql typescript
Last synced: 2 months ago
JSON representation
NodeJS API using Postgres native driver and Typescript!
- Host: GitHub
- URL: https://github.com/than-dev/postgres-api
- Owner: than-dev
- License: mit
- Created: 2021-07-02T16:48:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T01:29:05.000Z (over 4 years ago)
- Last Synced: 2025-02-05T14:48:50.790Z (about 1 year ago)
- Topics: api, backend, database, nodejs, postgresql, typescript
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
It is an users API developed with Typescript, nodeJs, Postgres driver and good practices of clean architecture!
## Installing
After clone it, just run:
```
yarn install
```
or
```
npm install
```
With Postgres running in your machine, you can configure it on: src/database/connection.ts!
### To run all migrations and create the tables, just run:
```
yarn run-migrations
```
or
```
npm run run-migrations
```
### Undo it with:
```
yarn revert-migrations
```
or
```
npm run revert-migrations
```
In project there is a folder called http that contains all api usage instructions!