From 5a8de271207c9fae978ee68e35ea1017f9f53871 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 5 Jun 2022 17:58:46 +0200 Subject: [PATCH] Update README (closes #1) --- .env.example | 6 ++++++ README.md | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..5f42bd8 --- /dev/null +++ b/.env.example @@ -0,0 +1,6 @@ +DATABASE_URL=postgresql://steffo@localhost/festa?host=/var/run/postgresql +FESTA_TOKEN_EXPIRATION_MS=86400000 +TELEGRAM_TOKEN=YOUR-BOT-TOKEN +TELEGRAM_HASH_EXPIRATION_MS=300000 + +NEXT_PUBLIC_TELEGRAM_USERNAME=YOUR-BOT-USERNAME diff --git a/README.md b/README.md index 8c2ecb1..6af76e3 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,13 @@ Run: ```console $ yarn install -$ yarn dev -$ open http://nitro.localhost +$ edit .env.local +$ yarn app:dev +$ open http://local.steffo.eu ``` + +> Sadly `http://local.steffo.eu/` points to a 192.168.1.* address, which means you won't be able to login anyways unless you have that exact same address :| + +### Using Visual Studio Code + +Configure your `.env.local` file, then run the `Everything!` run configuration.