2blo / before-effects

before-effects.vercel.app
0 stars 0 forks source link

Usage

Local Dev

Clean install:

npm ci

Install:

npm install
npm run build

Update client schema:

npx prisma generate

Prototype new db schema:

npx prisma db push

Commit / create initial tables:

npx prisma migrate dev

Run locally:

npm run dev

Inspect db

Print a table, with 1 optional WHERE selection:

python .scripts/inspect-db.py <TableName> <column=value>

Use the Excel Viewer extension to view.

Vercel

Add build command from custom npm script according to Prisma docs:

npm run vercel-build

Warning: Preview deployments have "random" URLs that wont be listed in Google Cloud credentials.

Enviroments

Databases

Branches

Vercel Deployments / Env Vars:

Local Deployments / Env Vars:

Auth:

Each feature branch will get a new url, you have to set it manually in Google console, and update the Vercel settings.

Create T3 App

This is an app bootstrapped according to the init.tips stack, also known as the T3-Stack.

What's next? How do I make an app with this?

We try to keep this project as simple as possible, so you can start with the most basic configuration and then move on to more advanced configuration.

If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.

We also roll our own docs with some summary information and links to the respective documentation.

Also checkout these awesome tutorials on create-t3-app.

How do I deploy this?

Follow our deployment guides for Vercel and Docker for more information.