Compare commits
2 Commits
20fba31f58
...
ce622087e8
| Author | SHA1 | Date | |
|---|---|---|---|
| ce622087e8 | |||
| 260ba2d486 |
23
README.md
23
README.md
@@ -7,18 +7,22 @@ Klapi on Tietokonepajan tarjoama monikäyttöinen API rajapinta sekä tietovaras
|
||||
Projektissa on valmiit reseptit [justfile](justfile)-tiedostossa.
|
||||
|
||||
Esivaatimukset:
|
||||
|
||||
- `just`
|
||||
- `dotnet`
|
||||
- `bun`
|
||||
- `sqlite3` (DB-resepteihin)
|
||||
|
||||
Listaa kaikki reseptit:
|
||||
|
||||
- `just --list`
|
||||
|
||||
Sovelluksen käynnistys:
|
||||
|
||||
- `just dev`
|
||||
|
||||
API (.NET):
|
||||
|
||||
- `just api-restore`
|
||||
- `just api-build`
|
||||
- `just api-clean`
|
||||
@@ -28,6 +32,7 @@ API (.NET):
|
||||
- `just api-publish`
|
||||
|
||||
UI:
|
||||
|
||||
- `just ui-install`
|
||||
- `just ui-dev`
|
||||
- `just ui-build`
|
||||
@@ -35,6 +40,24 @@ UI:
|
||||
- `just ui-lint`
|
||||
|
||||
Tietokanta (SQLite):
|
||||
|
||||
- `just db-setup`
|
||||
- `just db-reset`
|
||||
- `just db-shell`
|
||||
|
||||
## Tuotantoon julkaisu
|
||||
|
||||
```bash
|
||||
just deploy
|
||||
```
|
||||
|
||||
Skripti ([scripts/deploy.sh](scripts/deploy.sh)) suorittaa:
|
||||
|
||||
1. `git pull` — hakee uusimmat muutokset
|
||||
2. `dotnet publish` — kääntää API:n release-tilaan
|
||||
3. `db-setup` — ajaa `init.sql`:n tietokantaan (luo puuttuvat taulut)
|
||||
4. `systemctl restart klapi-api` — käynnistää API-palvelun uudelleen
|
||||
5. `bun install && bun run build` — asentaa riippuvuudet ja kääntää UI:n
|
||||
6. `pm2 restart klapi-ui` — käynnistää UI-prosessin uudelleen
|
||||
|
||||
> Inkrementaaliset skeemamuutokset (sarakkeiden lisäykset ym.) ajetaan automaattisesti API:n käynnistyksessä `Program.cs`-migraatioiden kautta.
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="fi">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>KlAPI UI</title>
|
||||
<title>Klapi</title>
|
||||
<meta name="description" content="Helppokäyttöinen tietokantapalvelu selaimessasi." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://klapi.tietokonepaja.fi/" />
|
||||
<meta property="og:title" content="Klapi" />
|
||||
<meta property="og:description" content="Helppokäyttöinen tietokantapalvelu selaimessasi." />
|
||||
<meta property="og:image" content="https://klapi.tietokonepaja.fi/logo.png" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="Klapi" />
|
||||
<meta name="twitter:description" content="Helppokäyttöinen tietokantapalvelu selaimessasi." />
|
||||
<meta name="twitter:image" content="https://klapi.tietokonepaja.fi/logo.png" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
BIN
ui/public/logo.png
Normal file
BIN
ui/public/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
Reference in New Issue
Block a user