Newer
Older
Web client of the Sensor Management System software developed within the
Helmholtz DataHub Initiative by [GFZ](https://www.gfz-potsdam.de) and
[UFZ](https://www.ufz.de).
## License
The software is distributed within the Helmholtz DataHub Initiative under the
**HEESIL License**. See [LICENSE](LICENSE).
## How to get started
### Development
# serve for development with hot reload at localhost:3000
$ npm run build
$ npm run start
```
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

Martin Abbrent
committed
#### Running tests
Running all tests:
```bash
$ npm run test
```
Running a specific test:
```bash
$ npm run path/to/test.ts
```
#### Running the linter
Running the linter (eslint) over all `*.js`, `*.ts` and `*.vue` files:
```bash
$ npm run lint
```
$ npm run format path/to/script.ts
```
Fixing problems for all files:
```bash
$ npm run format .
```
**Note:** when used with the `npm` script, the linter ignores all files and
directories that are ignored by `.gitignore` (eg. the `dist` folder).

Martin Abbrent
committed
## Run development environment with docker
### Docker
```bash
docker run --rm -p 127.0.0.1:80:3000 --user node --workdir /home/node \
-v `pwd`:/home/node node:current-slim \
bash -c "npm install && npm run dev -- -H 0.0.0.0"
```
### Compose
```bash
docker-compose up -d # Start container in detached mode
docker-compose logs --follow # Watch output
```