From d0d37ba34f8d4f1969a2206997a48ade8086aca6 Mon Sep 17 00:00:00 2001 From: Aldrin <53973174+Dhoni77@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:00:47 +0530 Subject: [PATCH] docs: add an alternate approach to seed local database (#11307) Co-authored-by: Peer Richelsen --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 1f64390a7a..0513e8acf4 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,8 @@ echo 'NEXT_PUBLIC_DEBUG=1' >> .env #### Setting up your first user +##### Approach 1 + 1. Open [Prisma Studio](https://prisma.io/studio) to look at or modify the database content: ```sh @@ -264,6 +266,17 @@ echo 'NEXT_PUBLIC_DEBUG=1' >> .env > New users are set on a `TRIAL` plan by default. You might want to adjust this behavior to your needs in the `packages/prisma/schema.prisma` file. 1. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user. +##### Approach 2 + +Seed the local db by running + +```sh +cd packages/prisma +yarn db-seed +``` + +The above command will populate the local db with dummy users. + ### E2E-Testing Be sure to set the environment variable `NEXTAUTH_URL` to the correct value. If you are running locally, as the documentation within `.env.example` mentions, the value should be `http://localhost:3000`.