Open, accessible, transparent, actionable sustainability data.
We believe in open data and open source.
- Read our Introduction for new contributors in the discussions.
- Read how to set up your development environment
- We have a development todo list here: https://github.com/orgs/Open-Sustainability-Index/projects/1/views/3 but feel free to come up with your own ideas too!
- See https://www.opensustainabilityindex.org/support-us for more information on how to contribute to Open Sustainability Index.
- See https://www.opensustainabilityindex.org/api on how to access the data through our API.
- Always work in separate branches, and use pull requests.
- Process:
- When starting on new task, assign yourself to the GitHub task card and move the card to “In Progress” lane.
- Create new branch for new feature:
dev/[description-of-feature](PR title: “Description of feature”) or fix:dev/fix-[description-of-bug](PR title: “Description of bug”). - Apply code linting/prettifier –
npm run fix– before committing code and correct any issues. - Create pull request (PR) on GitHub.
- Tech Lead will approve pull request and merge into
mainbranch.
- It’s ok to merge
mainbranch into your feature branch to solve conflicts. - Versioning (in
package.json) done by Tech Lead:v1.2.3=v[Major].[Minor].[Patch]. Minor: when a new screen/page is added, Patch for other changes.
If you have a csv with emission data you can submit it to Supabase following these steps:
- Go to the emission table
- Click "Insert"
- Click "Import data from CSV"
- Click "Paste text"
- Paste the contents of your CSV file into the text box
- Click "Insert". DONE!
If The above resulted in this error:
Failed to import data: insert or update on table "emission" violates foreign key constraint "public_emission_slug_fkey"
It means the company does not yet exist in the database. To add it manually you can do:
- Go to the company table
- Click "Insert"
- Click "Insert row"
- Fill in the 2 necessary rows (name, slug). Name should be the name of the company. Slug is the unique identifier for this company. It could be anything, but normally it's a computer friendly version of the name. Replace spaces in the name with
-and replace language specific characters such asåäö. Make it lower-case. A good slug forDiös Fastigheterwould for example bedios-fastigheter - Click "Save"
- The company is now saved and you can add the column
company_slugto your csv with the slug of the company you just added and redo the emission steps above.
We use GitHub Discussions for communications around development and design of Open Sustainability Index.
Send an email to hello@opensustainabilityindex.org if you have other questions.