React frontend for Georgian Budget site
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
locales
public
scss
src
test
tmp
.babelrc
.env.example
.eslintrc.json
.gitignore
Dockerfile
LICENSE
README.md
app.js
docker-compose.yml
package.json
shipitfile.js
yarn.lock

README.md

This site allows users to interact with data from the Georgian-Budget project API.

Get Started

  1. Setup .env file
  2. cp .env.example .env
  3. Set NODE_ENV to 'development'
  4. Set API_URL to https://dev-budgetapi.jumpstart.ge (for now)
  5. Install docker
  6. docker-compose build (takes a while)
  7. docker-compose up
  8. Open localhost:8080

If you want to use the API locally, then...

  1. Change API_URL in the .env file to http://localhost:3000
  2. Setup the API app on your computer

Deploy

For the first time:

  1. Add your environment-specific config to config/pm2/{env}.json and shipitfile.js.
  2. shipit staging deploy
  3. The first deploy won't work fully, because the .env file is missing on the server. Run cp current/.env.example shared/.env and then add the necessary environment variables to .env.
  4. Run shipit staging deploy again
  5. App should be running now. Run pm2 startup to get instructions from pm2 on how to make the app server start up again whenever the server reboots.

ReDUCKS

You may have noticed that redux reducers and actions in this repo are grouped into modules, called ducks, located in the js/ducks directory. Learn more about ducks here.