add bootstap command
This commit is contained in:
parent
66992de589
commit
334aa6b050
2 changed files with 28 additions and 0 deletions
27
README.md
27
README.md
|
|
@ -6,3 +6,30 @@ Try it out on your own account via this link:
|
||||||
|
|
||||||
<!-- Markdown snippet -->
|
<!-- Markdown snippet -->
|
||||||
[](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/netlify-faunadb-example)
|
[](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
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
|
"bootstrap": "node ./init-faunadb.js",
|
||||||
"buildFunctions": "netlify-lambda build functions",
|
"buildFunctions": "netlify-lambda build functions",
|
||||||
"build": "npm run buildFunctions && react-scripts build",
|
"build": "npm run buildFunctions && react-scripts build",
|
||||||
"test": "react-scripts test --env=jsdom",
|
"test": "react-scripts test --env=jsdom",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue