Veteran Support Base Progressive Web App (PWA)
The developer setup consists of a database server, an api server and an application server.
In a terminal run a local couchdb
mkdir data
docker run -p 5984:5984 -v $(pwd/data):/opt/couchdb/data apache/couchdb
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
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