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

https://github.com/negi524/three-level-architecture

3層アーキテクチャのサンプルリポジトリ
https://github.com/negi524/three-level-architecture

docker docker-compose mysql nestjs react remix schemaspy schemaspydocker swagger

Last synced: 3 months ago
JSON representation

3層アーキテクチャのサンプルリポジトリ

Awesome Lists containing this project

README

          

# three-level-architecture
3層アーキテクチャのサンプルリポジトリ

## Development

### Command

See [Makefile](./Makefile)

### FE

- framework: Remix
- local access: `http://localhost:3010`

### BE

- framework: NestJS
- local access: `http://localhost:3020`
- API interface: `http://localhost:3020/api`

#### Setup environment file

```bash
$ cp apps/be/.env.sample apps/be/.env
```

#### Setup prisma

```bash
$ docker compose exec be yarn prisma db pull
$ docker compose exec be yarn run format:prisma
$ docker compose exec be yarn prisma generate
```

### DB

- MySQL

#### Access database

```bash
$ mysql -h localhost -u root -p -D sample --protocol=tcp
Enter password:Password!

mysql>

```

### SchemaSpy

- local access: `http://localhost:8080`

---

## Production

See [Makefile](./Makefile)