aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/DEV.md
blob: b0513538a9fd3576c7f233f528775641f5382567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Architecture

* Reverse proxy server (Nginx)
* API server (Golang/Echo)
* App server (TypeScript/Remix)
* Database (PostgreSQL)
* Worker (Golang/Echo + Swift/SwiftWasm + WebAssembly/Wasmtime)

# Dependencies

* Docker
* Docker Compose
* Node.js 20.0.0 or later
* Npm
* Go 1.22.3 or later

# Run

1. Clone the repository.
1. `cd path/to/the/repo`
1. Copy `.env.example` to `.env` and configure:
    * `ALBATROSS_JWT_SECRET`: Secret key for JWT tokens
    * `ALBATROSS_COOKIE_SECRET`: Secret key for cookies
1. `direnv allow .` (optional)
1. `make init`
1. `make up`
1. Access to http://localhost:5173/phperkaigi/2025/code-battle/.
    * User `a`, `b` and `c` can log in with `pass` password.
    * User `a` and `b` are players.
    * User `c` is an administrator.