Skip to content

Commit

Permalink
chore(templates/website): adds seeded users to readme (#3412)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com>
  • Loading branch information
calvincchong and jacobsfletch committed Oct 8, 2023
1 parent a7beb1b commit 3e67180
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,16 @@ That's it! The Docker instance will help you get up and running quickly while al

To seed the database with a few pages, posts, and projects you can run `yarn seed`. This template also comes with a `GET /api/seed` endpoint you can use to seed the database from the admin panel.

The seed script will also create two users for demonstration purposes only:
1. Demo Author
- Email: `demo-author@payloadcms.com`
- Password: `password`
- Role: `admin`
2. Demo User
- Email: `demo-user@payloadcms.com`
- Password: `password`
- Role: `user`

> NOTICE: seeding the database is destructive because it drops your current database to populate a fresh one from the seed template. Only run this command if you are starting a new project or can afford to lose your current data.
## Production
Expand Down

0 comments on commit 3e67180

Please sign in to comment.