From 2d75d2cb7443a2c398dc317ae6335153b4c05f03 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 13 Apr 2021 22:53:29 +0200 Subject: Added a session table and a CreateSession function --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 4015f95..1ea91cb 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ A personal instance runs at https://trains.adyxax.org/. - [Configuration](#configuration) - [Usage](#usage) - [Building](#building) +- [Design Choices](#design-choices) - [References](#references) ## Dependencies @@ -78,6 +79,11 @@ To cross-compile for another os or architecture, use : GOOS=openbsd GOARCH=amd64 go build -ldflags="-s -w" ./cmd/trains-webui/ ``` +## Design Choices + +- Being a small webapp, the only database supported for now is sqlite3 +- Being a small webapp with no expectation of traffic and for simplicity, the user sessions are currently stored in the database + ## References - https://www.digital.sncf.com/startup/api -- cgit v1.2.3