From b92f803b974ce7e58b075918f99633ee163e580b Mon Sep 17 00:00:00 2001 From: MICHAEL JACKSON Date: Mon, 16 Oct 2017 15:20:06 -0700 Subject: [PATCH] Add dev script --- Procfile.local => Procfile.dev | 1 + README.md | 4 +--- package.json | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) rename Procfile.local => Procfile.dev (58%) diff --git a/Procfile.local b/Procfile.dev similarity index 58% rename from Procfile.local rename to Procfile.dev index 6a589de..678bb61 100644 --- a/Procfile.local +++ b/Procfile.dev @@ -1 +1,2 @@ web: NODE_ENV=development node server.js +db: redis-server --port 6379 diff --git a/README.md b/README.md index 31a7bf4..fd5ae1e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,4 @@ The project is sponsored by [Cloudflare](https://cloudflare.com) and [Heroku](ht ## Development -The website was built using [create-react-app](https://github.com/facebookincubator/create-react-app). This is the app you see when you run `yarn start`. However, none of the package links will work. - -To start the backend, use `yarn run server`. This will start the backend so the website (which is really just a static HTML file) can serve as a proxy for package requests. +To start the server, use `yarn dev`. This will start the backend so the website (which is really just a static HTML file) can serve as a proxy for package requests. Then, start the app in another shell with `yarn start`. diff --git a/package.json b/package.json index 55f97fa..5802734 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "start": "node scripts/start.js", "build": "node scripts/build.js", - "serve": "heroku local -f Procfile.local -p 3001", - "test": "node scripts/test.js --env=jsdom" + "test": "node scripts/test.js --env=jsdom", + "dev": "heroku local -f Procfile.dev -p 3001" }, "dependencies": { "algoliasearch": "^3.24.3",