diff --git a/README.md b/README.md index da911ea..57e9874 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,33 @@ A simple to-do app focused on tasks that can be completed within a specific time span. +## Development + +Create a OAuth client at [google](https://console.cloud.google.com/) + +Create vapid keys for webpush this can be done via `npx web-push generate-vapid-keys` + +When using the default sqliteDb create a `.data` folder in the root of the project. + +```dotenv +#Nuxt +NUXT_GOOGLE_CLIENT_ID= +NUXT_GOOGLE_CLIENT_SECRET= + +BETTER_AUTH_URL=http://localhost:3000 +#BETTER_AUTH_DATABASE_PATH=postgres://devuser:devpassword@localhost:5432/devdb + +NUXT_PUBLIC_WEBPUSH_PUBLIC_KEY= + +#Api +API_WEBPUSH_PRIVATE_KEY= + +#API_DATABASE_URL=postgres://devuser:devpassword@localhost:5432/devdb +``` + +run `just dev` to start the nuxt dev server and the api server + + ## Deployment via Nix ### flake.nix @@ -41,32 +68,6 @@ systemd.services.taskline-frontend = { ## .env example -### Development - -Create a OAuth client at [google](https://console.cloud.google.com/) - -Create vapid keys for webpush this can be done via `npx web-push generate-vapid-keys` - -```dotenv -#Nuxt -NUXT_GOOGLE_CLIENT_ID= -NUXT_GOOGLE_CLIENT_SECRET= - -BETTER_AUTH_URL=http://localhost:3000 -#BETTER_AUTH_DATABASE_PATH=postgres://devuser:devpassword@localhost:5432/devdb - -NUXT_PUBLIC_WEBPUSH_PUBLIC_KEY= - -#Api -API_WEBPUSH_PRIVATE_KEY= - -#API_DATABASE_URL=postgres://devuser:devpassword@localhost:5432/devdb -``` - -run `just dev` to start the nuxt dev server and the api server - -### All - ```dotenv # Nuxt NUXT_GOOGLE_CLIENT_ID=