Check it out and start your yearly diary!
Answer daily questions to keep a fun journal over the years!
See what others have answered throughout the years:
- Docker
- Node.js 16
- yarn v1
- Install depdencies:
yarn
- Set the
DATABASE_URL
environment variable:export DATABASE_URL=postgres://postgres:postgres@localhost:5432/yearlydiary
- Start the local database:
yarn --cwd db start-local-db
- Start the Next.js project:
yarn --cwd web dev
You can then access the local web app at http://localhost:3000/
- Run tests:
yarn test
- Install playwright dependencies:
yarn --cwd web playwright install-deps
- Install playwright browsers:
yarn --cwd web playwright install
- Run end to end tests:
yarn --cwd web test:e2e
-
Create a Postgres 14 database instance, e.g. elephantsql.com has free instances.
-
Create a vercel project.
-
Set the following secrets in your GitHub Action settings of your project:
VERCEL_ORG_ID
VERCEL_PROJECT_ID
VERCEL_TOKEN
You can have a look at the amondnet/vercel-action GitHub action readme to learn how to retrieve these values.
-
Set the
DATABASE_URL
environment URL from step 1 on your vercel project. -
Enable GitHub actions and push to your
main
branch
Concept & questions inspired by this diary that my wife got gifted from someone.
This project is MIT licensed.