An open API service indexing awesome lists of open source software.

https://github.com/hacknlove/dotgis

dotGIS React coding challenge
https://github.com/hacknlove/dotgis

Last synced: 17 days ago
JSON representation

dotGIS React coding challenge

Awesome Lists containing this project

README

          

## demo

https://dotgis.hacknlove.org

## Run with docker
https://hub.docker.com/r/hacknlove/dotgis-challenge
```
docker run --name=dotgis-challenge --restart=always -d -p 5000:80 hacknlove/dotgis-challenge:latest
```

## Default Create React App Scripts
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

* `npm start`
* `npm test`
* `npm run build`
* `npm run eject`

## Custom Scripts

### `npm run build:docker`

Builds a docker image, with the mane and versión from `package.json` and uploads it to the docker hub

You must be logged in docker hub with the apropiate account.

### `npm run serve`

Builds and serves the production environment

### `npm run serve:docker`
Serves the production environment from the last docker image

### traefik
**docker-compose.yml**
```
version: '3.2'
services:
static:
restart: always
image: hacknlove/dotgis-challenge:latest
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
expose:
- 80
networks:
- web
labels:
- "traefik.port=80"
- "traefik.enable=true"
- "traefik.frontend.rule=Host:example.com"
- "traefik.docker.network=web"
networks:
web:
external: true
```