This is the frontend client that powers climatefuture.io. The backend code is at kevinsqi/climatefuture.
First, set up and run the climatefuture server at localhost:3001.
Then, run the client app:
yarn install
yarn dev
Go to http://localhost:3000 to view the app.
Alternate frontend-only setup:
If you don't need to modify server code, you can also run yarn dev:prod-api
to use the prod API instead of running a local API server at localhost:3001.
dokku apps:create climatefuture-client
git remote add dokku [email protected]:climatefuture-client
git push dokku master
dokku domains:add climatefuture-client climatefuture.io www.climatefuture.io
dokku config:set climatefuture-client GOOGLE_ANALYTICS_TRACKING_ID=<value>
Setting up https with dokku-letsencrypt
and this guide:
dokku config:set --no-restart climatefuture-client DOKKU_LETSENCRYPT_EMAIL=<email>
dokku letsencrypt climatefuture-client
dokku letsencrypt:cron-job --add
crontab -l -u dokku
Redirect to www:
dokku redirect:set climatefuture-client climatefuture.io www.climatefuture.io