A cross between a portfolio, a playground, and a prayer.
The following are really my notes because I don't have good memory and I like being able to copy paste commands for the ones I won't use often. So this is really a mini-wiki, but I figure it will be useful for persons who want to contribute, learn code or copy and change things to customise the site to their liking.
# 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
# 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
See something, you would like to change? You're welcome to submit a PR. Here are some things that need to be done! I also try to go through this checklist before merging.
- Update sitemap
- Test on mobile
yarn release -- --release-as patch
yarn release -- --release-as minor
yarn release -- --release-as major
git push --follow-tags origin main
- Sabrina Medwinter
Discover the release history by heading on over to the releases page.
Unless stated otherwise all works are:
- Copyright © Sabrina Medwinter
and licensed under: