jeanquark / tif-supabase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

# install dependencies
npm install
# run in dev mode
npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Supabase config

Run the following commands for local development:

supabase init

Specify '8000' as Supabase URL port. (Next is running on PORT 3000).

supabase start

Write down console displayed "Supabase URL" and "Supabase Key" (anon) in .env.local file.

When updating postgres table structures, be mindful of the impact on database replications (supabase admin) as well as on postgres trigger functions.

Cron jobs

cronjobs

*/1 * * * * wget https://thisisfan.com/api/api-football/fetch-live-fixtures
0 30 * ? * * wget https://thisisfan.com/api/api-football/fetch-league-standing

About


Languages

Language:JavaScript 98.9%Language:CSS 1.1%