Currently the application resides in the Rhok Eco Warriors Github repo found here
The production app is hosted at eco warriors web url
This project is based on create-react-app
Run yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Run yarn test
yarn build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
The application is currently hosted using Google firebase.
The login uses the admin
eco warriors google email.
The projects listed on the app are stored in a no sql firestore
database.
The application uses Github actions to automatically deploy when any new code is pushed to the master
branch of the repo above.
The fireman
app can be used to view / edit and upload new projects easier than using the Google developer web interface. The steps are below.
- Download the
fireman
app here. - Inside the Google developer console open the
eco-warriors-hub
firebase project - From Firebase project, go to Project settings > Service accounts. Click Generate new private key.
- Download the private key. Note make sure this is kept in a secure place and not shared to anyone as it allows full read write access to the
firestore
DB. - Open
fireman
app and enter private key and set database name toeco-warriors-hub
. - Click connect, once connected the
fireman
app should save this connection and you can skip steps1-5
in the future.
Once you have a connection setup
- Set collection name to
projects
. - Tap on
fetch documents in collection
option. - This should show a list of all available projects.
- These can be edited and then updated by pressing enter. Be careful this will change the production data so make sure the update looks good.
fireman
has a feature to import via csv. New projects can be imported via a csv in the following format.
title,summary,link,img
<project title>,<project summary>,<project link>,<project img>