https://github.com/dunghenry/node_typeorm
typeorm + postgresql
https://github.com/dunghenry/node_typeorm
docker-compose expressjs postgresql typeorm
Last synced: 3 months ago
JSON representation
typeorm + postgresql
- Host: GitHub
- URL: https://github.com/dunghenry/node_typeorm
- Owner: dunghenry
- Created: 2022-10-21T16:58:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-22T16:30:18.000Z (over 3 years ago)
- Last Synced: 2025-01-25T19:29:05.258Z (over 1 year ago)
- Topics: docker-compose, expressjs, postgresql, typeorm
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Awesome Project Build with TypeORM
Steps to run this project:
1. Run `npm i` command
2. Setup database settings inside `data-source.ts` file
3. Run `npm start` command
### Create project
```js
typeorm init --database postgres --express
```
### Run docker
```js
docker compose up -d
```
### Login postgres
```js
psql -U postgres
```
### Show db
```js
\l
```
### Use db
```js
\c namedb
```
### Show all table
```js
\dt
```
### Show all records
```js
select * from "user";
```