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/couchdbIn a terminal run the api server
cd apiIf this is your first time setting up the enviroment, make sure you load the test data and indexes
yarn loadThen start the server in dev mode
yarn devIn a terminal run the app server
cd appIf 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:5000We 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 startTrouble 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