ENERGYDATA.INFO
An open data platform created by the World Bank, providing access to datasets and data analytics that are relevant to the energy sector.
https://github.com/energy-data/energydata.info
Category: Energy Systems
Sub Category: Energy Data Accessibility and Integration
Last synced: about 15 hours ago
JSON representation
Repository metadata
energydata.info - open data and analytics for a sustainable energy future
- Host: GitHub
- URL: https://github.com/energy-data/energydata.info
- Owner: energy-data
- License: mit
- Created: 2016-09-07T11:43:23.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2017-12-07T19:51:39.000Z (over 7 years ago)
- Last Synced: 2025-04-21T04:04:17.896Z (7 days ago)
- Language: CSS
- Homepage: http://energydata.info
- Size: 9.72 MB
- Stars: 29
- Watchers: 6
- Forks: 6
- Open Issues: 6
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
Contributing
Requirements
- VirtualBox 5
- Vagrant
- This repo
Development
Initial provisioning
- Clone this repo
cd energydata.info
git submodule update --init --recursive
- Copy
development.ini.sample
todevelopment.ini
- Change variables in development.ini:
- beaker.session.secret
- app.instance.uuid
- ckanext.s3.*
- Configure smtp for email
- Start the VM with
vagrant up
vagrant ssh
to ssh into the VM.- Fix the permissions:
sudo usermod -aG docker $(whoami) && newgrp docker
(this should be done by build_box.sh, but currently fails) source venv/bin/activate
which will allow you to use the datacats commandcd /vagrant
datacats init
to initialize the environment and choose an admin password
Booting
- In the repo directory
vagrant up
. - Point your web browser to 192.168.101.99 (the address of the VM)
- Modifications to the CSS & templates will be reloaded automatically using vagrant sync. Adding templates or changing configuration files will not cause a server restart, check the next section to restart the server
Restarting the server
If you're adding new templates or new functionality to CKAN, you might need to restart the CKAN server.
vagrant ssh
to ssh into the VMsource venv/bin/activate
which will allow you to use the datacats commandcd /vagrant
(this is the synced folder with the git repo)./reload-server.sh
to reload the server
Styles (Less)
Less is compiled in the local machine, not vagrant.
The resulting styles should be committed to the repo.
Requirements
- Node (v4.2.x) & Npm (nvm usage is advised)
The versions mentioned are the ones used during development. It could work with newer ones.
After these basic requirements are met, run the following commands in the website's folder:
npm install
Watch for changes
npm run less-watch
Starts the watcher and recompiles when files change.
Deploy instructions
This assumes a base OS of Ubuntu 16.04
- Clone this repo on the target machine
- Follow the instructions in
build-box/build_box.sh
, changingvagrant
to this repository's source directory - Copy
development.ini.sample
todevelopment.ini
- Change variables in development.ini:
- beaker.session.secret
- app.instance.uuid
- ckanext.s3.*
- Configure smtp for email
cd wbg-energydata
datacats init
and choose an admin passworddatacats reload
datacats paster -d celeryd
- For HTTPS, install Let's Encrypt and uncomment the HTTPS section of the nginx configuration
New iteration
To deploy a new iteration of the data platform to the production environment, follow these steps:
- ssh into the machine
cd wbg-energydata
git checkout master
git pull origin master
- [only if you enable a new plugin]
datacats install
./reload-server.sh
to restart the server
Setting up the harvester
cd wbg-energydata
datacats tweak --add-redis
datacats reload
cd ckanext-harvest
datacats paster harvester initdb
datacats paster -d harvester gather_consumer
datacats paster -d harvester fetch_consumer
Adding a new DCAT-JSON ArcGIS harvest source
cd wbg-energydata/ckanext-harvest
datacats paster harvester source energy-gis-arcgis http://data.energy-gis.opendata.arcgis.com/data.json dcat-json "Energy Sector GIS Working Group" true energy-sector-gis-working-group
datacats paster harvester job-all
to create and run a harvest job
Owner metadata
- Name: energy-data
- Login: energy-data
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/20424964?v=4
- Repositories: 11
- Last ynced at: 2023-07-31T14:08:31.893Z
- Profile URL: https://github.com/energy-data
GitHub Events
Total
- Issues event: 1
- Watch event: 3
Last Year
- Issues event: 1
- Watch event: 3
Committers metadata
Last synced: 6 days ago
Total Commits: 239
Total Committers: 10
Avg Commits per committer: 23.9
Development Distribution Score (DDS): 0.682
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
Olaf Veerman | o****n@g****m | 76 |
Marc Farra | m****a@g****m | 67 |
Ricardo Mestre | r****o@d****g | 52 |
Naichen Zhao | n****o@g****m | 19 |
David Read | d****d@h****m | 14 |
Daniel da Silva | d****l@d****g | 4 |
Dylan | D****n@d****g | 3 |
carderne | c****e@w****g | 2 |
Drew Bollinger | d****w@d****g | 1 |
Dylan | d****n@d****g | 1 |
Committer domains:
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 206
Total pull requests: 87
Average time to close issues: 4 months
Average time to close pull requests: 1 day
Total issue authors: 9
Total pull request authors: 3
Average comments per issue: 2.64
Average comments per pull request: 0.34
Merged pull request: 87
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 0
Past year average time to close issues: about 3 hours
Past year average time to close pull requests: N/A
Past year issue authors: 2
Past year pull request authors: 0
Past year average comments per issue: 0.0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- olafveerman (92)
- yanntanvez (40)
- Naigege (27)
- ClaraIV (21)
- kamicut (9)
- ojknight (9)
- carderne (6)
- bulhakovolexii (1)
- Ly0n (1)
Top Pull Request Authors
- olafveerman (45)
- kamicut (24)
- ricardoduplos (18)
Top Issue Labels
- priority (36)
- bug (6)
- enhancement (3)
Top Pull Request Labels
Dependencies
- less ^2.7.1 development
- less-watch-compiler ^1.2.3 development
- pycountry *
Score: 5.85793315448346