Skip to content

Repository files navigation

running locally

set up tailwind build process

npx tailwindcss -i ./src/index.css -o ./src/output.css --watch

supabase local

you'll need Docker. Project was developed with Docker Desktop on Windows, but other Docker projects should work as well.

make sure Docker is running, then run npx supabase init and npx supabase start

after supabase is running, migrations/seeding data can be run with npx supabase db reset more info: https://supabase.com/docs/guides/cli/local-development

generate types from db - npx supabase gen types typescript --local > ./src/db/database.types.ts will need to re-run this to get full type support if db schema changes

to populate db from json (not included in repo)

npx tsx ./src/utils/insert-data.ts

finally, run vite

npm run dev

links that helped troubleshoot issues

supabase generated types don't seem to be able to be set 1:1 relationships. was pulling out individual objects that the auto generated types thought were arrays. supabase/cli#736 (comment)

postgres datediff https://www.commandprompt.com/education/postgresql-datediff-datetime-difference-in-years-months-etc/

vite boilerplate below

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
    // other rules...
    parserOptions: {
        ecmaVersion: 'latest',
        sourceType: 'module',
        project: ['./tsconfig.json', './tsconfig.node.json'],
        tsconfigRootDir: __dirname,
    },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

Wordle-esque web game, but for NFL Football players

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages