# Install dependencies
yarn
# View the website at:
# http://localhost:3001
yarn dev
# Install the Prisma CLI
yarn add --dev prisma
# Generate artifacts
npx prisma generate
# Create tables
npx prisma db push
# See the tables
npx prisma studio
Note
If you have problems with environment variable not being found, make sure the .env file is just .env and not .env.local with the prisma information.
# Update database after schema change
npx prisma migrate dev --create-only --name "migration-name"
npx prisma migrate dev
Warning
Your tables will be dropped and you will lose data unless you edit the migration file to renaming instead of dropping. It's a simple SQL query. Here is an SQL Cheatsheet.
- Update sitemap
- Test on mobile