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

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

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";
```