https://github.com/devinit/data-hub-spotlights
Spotlight on Uganda - http://157.245.39.153/spotlight/spotlight-uganda & Spotlight on Kenya - http://157.245.39.153/spotlight/spotlight-kenya
https://github.com/devinit/data-hub-spotlights
data-visualization kenya poverty spotlight uganda
Last synced: 7 months ago
JSON representation
Spotlight on Uganda - http://157.245.39.153/spotlight/spotlight-uganda & Spotlight on Kenya - http://157.245.39.153/spotlight/spotlight-kenya
- Host: GitHub
- URL: https://github.com/devinit/data-hub-spotlights
- Owner: devinit
- Created: 2019-11-25T13:05:18.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-07T01:02:35.000Z (over 2 years ago)
- Last Synced: 2025-01-07T21:46:57.326Z (9 months ago)
- Topics: data-visualization, kenya, poverty, spotlight, uganda
- Language: TypeScript
- Homepage:
- Size: 24.3 MB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 55
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data Hub Spotlights
Contains re-designed spotlights on Uganda and Kenya, perhaps others
## Development
- Install dependencies with:
npm install
- Create a `.env` file and add CMS_URL, setting it to the most updated version of the DI Website. Defaults to `http://devinit.org/`.
If the dependent spotlights code has not been pushed to the live website, defer to either the dev server `http://dev.devinit.org/` or your own local copy on the `develop` branch- When pointing to your local copy of the website, spotlight assets must be imported from the [DataHub CMS](https://github.com/devinit/datahub-cms) repo.
This requires two commands:./manage.py fetch_spotlight_data
./manage.py import_spotlight_dataYou must then login to the admin section and under a `Data` page, create a new SpotlightPage e.g Spotlight on Uganda, the choose the appropriate imported spotlight under the `Meta` section. You can check to see if all your data is coming through properly by pasting `[Your Website URL]/api/spotlights/page/[Spotlight Page Slug]/` in your browser.
- Run dev environment with:
npm run dev
- [At the Moment] Initial view is the playground. To view the spotlight page, go to `https://localhost:3000/spotlight/[SpotlightPage Slug]/`
### Run application with docker
- In the application's root directory run the following command to build an image:
docker build -t .
replace with any image name of choice
- Run the app container basing on the image created above using:
docker run -p :3000 --name -e CMS_URL=""
replace the:
with any port value you wish to display the application
with a container name of your choice
with the url of the server
with the name of the image you built in the previous step
## CMS Documentation
Read [here](/docs/README.md)