Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a map with points from API #2

Merged
merged 11 commits into from
Jul 16, 2024
6 changes: 5 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: __dirname,
},

Expand All @@ -18,6 +18,7 @@ module.exports = {
'import',
'flowtype',
'jsx-a11y',
'@stylistic',
// 'jest',
// 'testing-library',

Expand Down Expand Up @@ -116,6 +117,9 @@ module.exports = {
// ], // default "error"
'no-useless-constructor': 'off',
// '@typescript-eslint/no-useless-constructor': 'warn', // default "error"

'@stylistic/no-tabs': 'error',


/*
// migrated from:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ data on a map and bar charts.

_Part of the [AROSS Stations](https://github.com/nsidc/aross-stations) project._

> [!IMPORTANT]
> The [database and API](https://github.com/nsidc/aross-stations-db) must be running on
> `localhost`.


## Usage

Expand All @@ -24,7 +28,7 @@ development, requires [NodeJS](https://nodejs.org/en) >=20.
### Starting the UI

```bash
docker compose up --detach
docker compose up --pull=always --detach
```

Visit the running application at `http://localhost:80`.
Expand Down
6 changes: 5 additions & 1 deletion compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ services:
args:
- "env=dev"
restart: "on-failure"
ports:
ports: !override
# 5173 is Vite dev server's default port
- "80:5173"
volumes:
- "./src:/app/src:ro"
- "./index.html:/app/index.html:ro"
- "./.eslintrc.cjs:/app/.eslintrc.cjs:ro"
- "./vite.config.ts:/app/vite.config.ts:ro"
- "./tsconfig.json:/app/tsconfig.json:ro"
- "./tsconfig.app.json:/app/tsconfig.app.json:ro"
- "./tsconfig.node.json:/app/tsconfig.node.json:ro"
Loading
Loading