Install the Ionic CLI with npm:
$ npm install -g @ionic/cli
Clone the repository:
$ git clone https://github.com/laws-africa/constitution-app-react.git
$ cd constitution-app-react
Install dependencies with npm:
$ npm i
$ ionic serve
This should open your browser window on http://localhost:8100!
Download src/assets/data/data.json
from https://edit.laws.africa/concompass/data.json and replace the existing file.
Update the legislation content as follows:
Create a Python virtual environment if you want and install the requirements
$ cd backend
$ pip install -r requirements.txt
Run the script to download legislation content.
$ python main.py
The app is hosted by GitHub pages. It is built automatically from the master branch by the GitHub action script at .github/workflows/deploy.yml.
To mimic this process, use:
$ ionic build --prod --engine=web
This generates a build
folder which contains the entire public website.
i18next 'src/**/*.{js,tsx}'