You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
# Devseed Sense
|
|
|
|
Simple dashboard that taps into the [opensensemap](http://opensensemap.org/) api to show the measurements for a specific [sensebox](www.sensebox.de/en/).
|
|
|
|
![devseed-sense-dashboard.png](app/assets/graphics/meta/default-meta-image.png)
|
|
|
|
## Development environment
|
|
To set up the development environment for this website, you'll need to install the following on your system:
|
|
|
|
- Node (v8.9.x) & yarn ([nvm](https://github.com/creationix/nvm) usage is advised)
|
|
|
|
> The versions mentioned are the ones used during development. It could work with newer ones.
|
|
Run `nvm use` to activate the correct version.
|
|
|
|
After these basic requirements are met, run the following commands in the website's folder:
|
|
```sh
|
|
$ yarn install
|
|
```
|
|
|
|
### Getting started
|
|
|
|
```sh
|
|
$ yarn serve
|
|
```
|
|
Compiles the sass files, javascript, and launches the server making the site available at `http://localhost:1337/`
|
|
The system will watch files and execute tasks whenever one of them changes.
|
|
The site will automatically refresh since it is bundled with livereload.
|
|
|
|
The current code will show the values for the [Begga sensebox](http://opensensemap.org/#/explore/5b26181b1fef04001b69093c).
|
|
This can be changed by setting the correct ids in `config/production.js`
|
|
|
|
### Other commands
|
|
Compile the files to the `dist` folder ready for production.
|
|
```
|
|
$ npm run build
|
|
```
|