Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 1.45 KB

readme.md

File metadata and controls

79 lines (53 loc) · 1.45 KB

Veteran Support Base

Veteran Support Base Progressive Web App (PWA)

Developer Setup Instructions

The developer setup consists of a database server, an api server and an application server.

Run each app manually

CouchDB

In a terminal run a local couchdb

mkdir data
docker run -p 5984:5984 -v $(pwd/data):/opt/couchdb/data apache/couchdb

API

In a terminal run the api server

cd api

If this is your first time setting up the enviroment, make sure you load the test data and indexes

yarn load

Then start the server in dev mode

yarn dev

APP

In a terminal run the app server

cd app

If this is your first time, setup your .env file - also make sure the url is pointing to your api server.

echo REACT_APP_BASE_URL=http://localhost:5000

We display a map of the veteran resource at the top of the resource card. You also need the api key for google maps. Contact @twilson63 or @tripott for the secret.

echo REACT_APP_MAP=<contact a repo admin for secret>
yarn start

Trouble running the dev setup, post an issue.

EXPERIMENTAL - You can start all three of these servers up using one foreman proc file, or run them in separate windows.

yarn start