rowt/README.md

49 lines
882 B
Markdown
Raw Normal View History

2024-06-06 10:38:18 +02:00
![latest CI run on main](https://git.hofer.link/Ruderverein-Donau-Linz/rowt/actions/workflows/action.yml/badge.svg?branch=main)
2024-01-16 22:52:31 +01:00
# Build
2023-07-21 10:45:55 +02:00
## Frontend
2024-01-16 22:52:31 +01:00
1. `cd frontend`
2. `npm install`
3. `npm run (watch/build)`
# Run
2023-09-28 14:53:08 +02:00
## Backend
2024-01-16 22:52:31 +01:00
1. `cargo r`
# Test
2023-07-21 10:45:55 +02:00
## Frontend
2024-01-16 22:52:31 +01:00
- `npx playwright test --workers 1 --project firefox`
- Nice UI: `--ui`
- Generate tests: `npx playwright codegen`
## Backend (Unit + Integration)
`cargo t`
2024-03-04 13:28:42 +01:00
# Lints
- Rust: `cargo check`
- Tera files: `djlint **.html.tera --profile=jinja --reformat`
- Typescript: `prettier -w *.ts`
2024-03-15 09:54:36 +01:00
# Dependencies
- `sqlite3`
- `rust`
# Nginx config
```
server {
server_name staging.rudernlinz.at;
location / {
proxy_pass http://localhost:7999/; # The / is important!
}
}
server {
server_name app.rudernlinz.at;
location / {
proxy_pass http://localhost:8001/; # The / is important!
}
}
```