Skip to content
Snippets Groups Projects
README.md 1.61 KiB
Newer Older
Marc Hanisch's avatar
Marc Hanisch committed
# Sensor Management System
Marc Hanisch's avatar
Marc Hanisch committed

> a system to manage sensors and platforms

Marc Hanisch's avatar
Marc Hanisch committed
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
Marc Hanisch's avatar
Marc Hanisch committed

```bash
# install dependencies
Marc Hanisch's avatar
Marc Hanisch committed
$ npm install --save-dev
Marc Hanisch's avatar
Marc Hanisch committed

Marc Hanisch's avatar
Marc Hanisch committed
# serve for development with hot reload at localhost:3000
Marc Hanisch's avatar
Marc Hanisch committed
$ npm run dev

Marc Hanisch's avatar
Marc Hanisch committed
# or build for production and launch server
Marc Hanisch's avatar
Marc Hanisch committed
$ npm run build
$ npm run start
```

For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
#### 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
```

Fixing linter problems on a specific file:
$ 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).

## 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

```