From 334aa6b0507391190020da70ad13fa92cda3d022 Mon Sep 17 00:00:00 2001 From: davidwells Date: Mon, 11 Jun 2018 16:06:20 -0700 Subject: [PATCH] add bootstap command --- README.md | 27 +++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 28 insertions(+) diff --git a/README.md b/README.md index af136e0..b44a8f6 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,30 @@ Try it out on your own account via this link: [![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 + ``` diff --git a/package.json b/package.json index 1a8530e..17347a8 100644 --- a/package.json +++ b/package.json @@ -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",