From 10969c96eb7d69d465ce72a63978a0f15154646e Mon Sep 17 00:00:00 2001 From: Imran khan Date: Tue, 2 Jul 2024 02:32:20 +0530 Subject: [PATCH] update readme.md and add some script (#108) * update readme.md and add some script * update readme.md and added some script * fixed seeding commands, updated .local docs * removed extra seed command --------- Co-authored-by: Zai Shi --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 487031b86..58b0ba649 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ ![Stack Logo](/assets/logo.png)

- 📘 Documentation - | ☁️ Hosted Version - | ✨ Demo - | Discord + 📘 Documentation + | ☁️ Hosted Version + | ✨ Demo + | Discord

## 💬 What is Stack? @@ -78,7 +78,7 @@ Please read the [contribution guidelines](CONTRIBUTING.md) before contributing. ### Setup -Pre-populated .env files for the setup below are available and used by default in `.env.development` in each of the packages, but you can choose to create your own `.env.local` files instead. +Pre-populated .env files for the setup below are available and used by default in `.env.development` in each of the packages. You should copy all the `.env.development` files to `.env.local` in the respective packages for local development. In a terminal, start the dependencies (Postgres and Inbucket) as Docker containers: @@ -86,7 +86,7 @@ In a terminal, start the dependencies (Postgres and Inbucket) as Docker containe docker compose -f dependencies.compose.yaml up ``` -Then: +Then open a new terminal: ```sh pnpm install @@ -94,12 +94,12 @@ pnpm install # Run build to build everything once pnpm run build +# initialize the database and seed it with some data +pnpm prisma seed + # Run code generation (repeat this after eg. changing the Prisma schema). This is part of the build script, but faster pnpm run codegen -# Push the most recent Prisma schema to the database -pnpm run prisma db push - # Start the dev server pnpm run dev ```