-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the smartlab-initiative wiki!
This repository holds the code for the front-end of the Smartlab Initiative. We invite all the community to join us in our mission and contribute. To do so, we recommend reading this first.
To run the project locally, you'll need to download and install node (with npm), if you don't have it, and go through some setup first.
Please, read this to better understand why and how to fork a project.
If you don't want to work in the content, just set an environment variable:
GIT_VIEWCONF_TAG_URL=https://raw.githubusercontent.com/smartlab-br/smartlab-initiative-viewconf/master/
Otherwise, if you want to be able to change the content and see it working locally, you have to fork and clone this repository under the /app/static/
dir.
At the moment, we're working in a self-service subscription. Until it becomes a reality, please, send us an e-mail ([email protected]) - we'll be glad to provide you with an API Key. Remember, though, that the access is not guaranteed - we might want to know you a little better (where you're from, if you're representing an organization, if there are more people in the organization that will use the data and so on...).
DATAHUB_API_BASE_URL = <the endpoint to the datahub-api>
DATAHUB_APP_KEY = <your application credential obtained in the subscription step>
ACIDENTOMETROS_API_BASE_URL = <the endpoint to the datahub-api>
ACIDENTOMETROS_APP_KEY = <your application credential obtained in the subscription step>
Go to the app folder and run scripts for installing and building the project:
$ cd app
$ npm install
$ npm run dev
You can start contributing! Just make sure to create a pull request to the contrib branch, otherwise it may be dismissed. We strongly recommend adding automated tests to the codebase. Read this to understand better about pull requests.
We'll do our best to give a quick feedback - bear in mind we're a small team, though.
There are plenty of ways to contribute to opensource projects, as we can read in this post. Some examples:
- Translation of content (editing smartlab-initiative-viewconf yamls);
- Code optimization;
- Enhancing unit testing coverage;
- Proposing new features and
- Repository and code documentation.
If you're working in the smartlab-initiative-viewconf
repository, make sure you're running git commands (pushes, branching, sending pull-requests) from it. Since in some cases you may have nested repositories, it's a common mistake to change the files and forget that the inner one is actually completely independent.
No, you don't! This is an opensource project and we intend to keep it as democratic as we can. Anyone can clone, fork and send pull requests to our repositories. We'll check the PR code quality and if it can be merged without breaking stuff. As long as the PR is clean and sent to the correct branch (contrib
), we'll do our best to approve it timely.
Eventually, we'll come up with a policy to add people to our ranks, as committers. When we do so, the access will be granted per repository or team (with a set of repositories under their responsibility).
There are a lot of tools to help in editing the files - some of them offer integration with terminal and other tools. Here are some alternatives: