chore: adds .env.example to demo

This commit is contained in:
Jacob Fletcher
2022-11-16 12:47:33 -05:00
parent 71057aa5ef
commit e3278bf981
2 changed files with 3 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ To actively develop or debug this plugin you can either work directly within the
This repo includes a fully working, self-seeding instance of Payload that installs the plugin directly from the source code. This is the easiest way to get started. To spin up this demo, follow these steps:
1. First clone the repo
1. Then, `cd PLUGIN_REPO && yarn && cd demo && yarn && yarn dev`
1. Then, `cd PLUGIN_REPO && yarn && cd demo && cp env.example .env && yarn && yarn dev`
1. Now open `http://localhost:3000/admin` in your browser
1. Enter username `dev@payloadcms.com` and password `test`

View File

@@ -0,0 +1,2 @@
MONGODB_URI=mongodb://localhost/payload-plugin-form-builder
PAYLOAD_SECRET=kajsnfkjhabndsfgseaniluanbsrkdgbhyasfg