Skip to content

Repository files navigation

GnarZone

Count the number of days you've skied this season based on Strava activities.

WIP Game of G.N.A.R. tracker

Tech Stack

Frontend

Backend

Getting Started

Prerequisites

  1. An up-to-date version of node.js
    • nvm or another node version manager is recommended
  2. pnpm
    • the corepack installation method is recommended, as it's the easiest
  3. a local postgres database. We use supabase, but any postgres database will work
    • instructions for local supabase installation can be found here

Installation

  1. Clone the repository
  2. Copy .env.local.example to .env.local and fill in the required variables
  3. Install dependencies:
pnpm install
  1. Start the development server:
pnpm dev
  1. Open http://localhost:3000 in your browser

Database Migrations

We use Drizzle ORM to manage database migrations, following "Option 3" from the Drizzle ORM docs.

  1. Make changes to the database schema by editing the files in src/db/schema (more info here)
  2. run pnpm drizzle-kit generate to generate migration files based on your changes
  3. run pnpm drizzle-kit migrate to apply the migrations to your local database
  4. 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 main branch

Testing

pnpm test

About

Count the number of days you've skied this season

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages