npx tailwindcss -i ./src/index.css -o ./src/output.css --watch
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
npx tsx ./src/utils/insert-data.ts
npm run dev
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/
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@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-runtimeto theextendslist