From 00b1f0ff4b868009034e315e798bbed1be45f071 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Tue, 8 Aug 2023 07:33:32 +0700 Subject: [PATCH] docs: mention the seed:certified-user command in the setup guide (#51174) --- docs/how-to-setup-freecodecamp-locally.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/how-to-setup-freecodecamp-locally.md b/docs/how-to-setup-freecodecamp-locally.md index 84a84272e1c..233e4ecdaa3 100644 --- a/docs/how-to-setup-freecodecamp-locally.md +++ b/docs/how-to-setup-freecodecamp-locally.md @@ -283,6 +283,15 @@ Next, let's seed the database. In this step, we run the below command that fills pnpm run seed ``` +By default, you will be signed in as a new user without any completed certifications. Run the following command if you need to develop with completed certifications: + +```console +pnpm run seed:certified-user +``` + +> [!WARNING] +> Running `pnpm run seed:certified-user` will log you out. You will have to clear your browser cookies and sign in again. + #### Step 4: Start the freeCodeCamp Client Application and API Server You can now start up the API server and the client applications. @@ -312,5 +321,6 @@ A quick reference to the commands that you will need when working locally. | ----------------- | ----------------------------------------------------------------------------- | | `pnpm install` | Installs / re-installs all dependencies and bootstraps the different services. | | `pnpm run seed` | Creates authorized test users and inserts them into MongoDB. | +| `pnpm run seed:certified-user` | Creates authorized test users with certifications fully completed, and inserts them into MongoDB. | | `pnpm run develop` | Starts the freeCodeCamp API Server and Client Applications. | | `pnpm run clean` | Uninstalls all dependencies and cleans up caches. |