Skip to content

kalecream/OldWebBrain

Repository files navigation

🧠 Old Web Brain

img

Technologies

img img img img img

Installation

General

# Install dependencies
yarn

# View the website at:
# http://localhost:3001
yarn dev

Prisma

# Install the Prisma CLI
yarn add --dev prisma

# Generate artifacts
npx prisma generate

# Create tables
npx prisma db push

# Migration
npx prisma migrate dev --name init

# 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.

Note

If you intend on deploying to Vercel, it is very important that you click this link should you encounter a build error -> Link


PR Todo list

  • Update sitemap
  • Test on mobile