-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
# Otaniemi infotaulut | ||
# Otaniemiemen lukion HSL-infotaulu | ||
> [!NOTE] | ||
> "Hardcoded for Otaniemen lukio, trivial task of replacing endpoints left for forker") | ||
> Heitetty kasaan päivässä, eli linjojen muuttaminen vaati lähdekoodin tökkimistä. | ||
![](/img/image.png) | ||
|
||
## Oman infotaulun pystyttäminen | ||
> [!NOTE] | ||
> Ohje on tarkoituksella tehty mahdollisimman yksinkertaiseksi ja ymmärrettäväksi. | ||
1. Rekistöröidy ja hae kehittäjäavain (api-key) osoitteesta `https://digitransit.fi/` | ||
|
||
2. Luo .env kansion palvelimelle sisällöllä: | ||
```env | ||
API_KEY="<hsl-api-key>" | ||
STATIC_DIR="/frontend/static" | ||
``` | ||
3. Jos olet tehnyt lähdekoodin muutoksia, rakenna kontti uudelleen komennolla `docker build . -t hsl` | ||
4. Käynnistä palvelin komennolla `docker run --rm -it --mount -p 3060:3060 type=bind,src="<polku .env kansioon>",target=/.env` | ||
5. Infotaulu on nyt näkyvissä lokaalisti osoitteessa `localhost:3060` | ||