Count the number of days you've skied this season based on Strava activities.
WIP Game of G.N.A.R. tracker
- An up-to-date version of node.js
- nvm or another node version manager is recommended
- pnpm
- the corepack installation method is recommended, as it's the easiest
- a local postgres database. We use supabase, but any postgres database will work
- instructions for local supabase installation can be found here
- Clone the repository
- Copy
.env.local.exampleto.env.localand fill in the required variables - Install dependencies:
pnpm install- Start the development server:
pnpm dev- Open http://localhost:3000 in your browser
We use Drizzle ORM to manage database migrations, following "Option 3" from the Drizzle ORM docs.
- Make changes to the database schema by editing the files in
src/db/schema(more info here) - run
pnpm drizzle-kit generateto generate migration files based on your changes - run
pnpm drizzle-kit migrateto apply the migrations to your local database - if everything looks good, make a pull request with your changes. The migrations will be applied to the production database when the changes are merged into the
mainbranch
pnpm test