- PostgreSQL 15
- Download the
.env
file from the discord server and save to project root. The file should have theDATABASE_URL
variable set to the local postgresql.
-
Clone repo.
git clone [email protected]:meows/party.git && cd party
-
Install npm dependencies.
npm i
-
Setup database schema & generate client.
npx prisma db push
Run the DB seed script
seed.ts
for initial data. The script is idempotent so you can run it again to reset the DB data.npx prisma db seed
-
Start the dev server in another terminal window, then navigate in a new browser tab to
localhost:3000
.npm run dev
Next.js will launch a dev server accessible over your local network. You can access the dev server from another device on the same local network at
hostname.local:3000
. Get your hostname by typinghostname
into the terminal. -
Launch a db explorer. This command also confirms that prisma is working. This command should open a brower window at
localhost:5555
.npx prisma studio
If schema.prisma
receives updates, then you can push to a connected DB with:
# update db & generate client
npx prisma db push
Then run the idempotent seed script for initial dummy data:
npx prisma db seed
- Everyone works on their own branch and does a pull request to merge to
main
. - Prefer squash commits unless your commits are very clean and atomic.
- A branch should be free of conflicts from
main
before merging.
- Prisma
- Tailwind
- Prettier
- https://github.com/tailwindlabs/prettier-plugin-tailwindcss (Prettier plugin)