Add seed data to seed.js

good for getting others up to speed
This commit is contained in:
Kurt Hutten
2020-11-09 20:43:59 +11:00
parent a9ccfe5352
commit 31be14e8b4
3 changed files with 105 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ yarn install
Initialise the db
``` terminal
yarn rw db up
yarn rw db seed
```
### Fire up dev
@@ -36,6 +37,14 @@ yarn rw dev
Your browser should open automatically to `http://localhost:8910` to see the web app. Lambda functions run on `http://localhost:8911` and are also proxied to `http://localhost:8910/.redwood/functions/*`.
you can sign in to the following accounts locally
localUser1@kurthutten.com: `abc123`
localUser2@kurthutten.com: `abc123`
localAdmin@kurthutten.com: `abc123`
You may need to register a account depending on what issue you are trying to tackle, This can be done by clicking the login button on the top right. This will open up netlify's idenitiy modal asking for the websites url, since it will notice you developing locally. Enter `https://cadhub.xyz/` than use you email, verify your email and you should be set.
(some routes are protected, but permissions is a big area that needs a lot of work in the near future, so it's in a very incomplete state atm)