Skip to content

Commit

Permalink
update readme.md and add some script (#108)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
imran1khan and fomalhautb committed Jul 1, 2024
1 parent e86425a commit 10969c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
![Stack Logo](/assets/logo.png)

<h3 align="center">
<a href="https://docs.stack-auth.com">📘 Documentation</a>
| <a href="https://stack-auth.com/">☁️ Hosted Version</a>
| <a href="https://demo.stack-auth.com/">✨ Demo</a>
| <a href="https://discord.stack-auth.com">Discord</a>
<a href="https://docs.stack-auth.com">📘 Documentation</a>
| <a href="https://stack-auth.com/">☁️ Hosted Version</a>
| <a href="https://demo.stack-auth.com/">✨ Demo</a>
| <a href="https://discord.stack-auth.com">Discord</a>
</h4>

## 💬 What is Stack?
Expand Down Expand Up @@ -78,28 +78,28 @@ 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:

```sh
docker compose -f dependencies.compose.yaml up
```

Then:
Then open a new terminal:

```sh
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
```
Expand Down

0 comments on commit 10969c9

Please sign in to comment.