add bootstap command

This commit is contained in:
davidwells 2018-06-11 16:06:20 -07:00
parent 66992de589
commit 334aa6b050
2 changed files with 28 additions and 0 deletions

View file

@ -6,3 +6,30 @@ Try it out on your own account via this link:
<!-- Markdown snippet -->
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/netlify-faunadb-example)
## Install
1. Clone down the repository
```
git clone
```
2. Install the dependencies
```
npm install
```
3. Bootstrap your FaunaDB table
```
npm run bootstrap
```
4. Run project locally
```
npm start
```

View file

@ -10,6 +10,7 @@
},
"scripts": {
"start": "react-scripts start",
"bootstrap": "node ./init-faunadb.js",
"buildFunctions": "netlify-lambda build functions",
"build": "npm run buildFunctions && react-scripts build",
"test": "react-scripts test --env=jsdom",