Skip to content

CSTARS/cimis-mobile

Repository files navigation

cimis-mobile

Spatial CIMIS webapp

Demo

Development

This project requires Docker

Built Using

Init Development Environment

Install client and server dependencies. yarn and npm are required.

npm install 
cd client/public
yarn install

Run webpack bundler file watcher

This generates /client/public/js/bundle.js. From root of repo:

npm run watch

Run Development server

Requires Docker

cd docker/cimis-mobile-local
# start docker
docker-compose up
# in a new terminal (same dir) bash into container
docker-compose exec app bash
# start express server
node /cimis-mobile/server

If this is the first time starting, give the server some time to populate redis. The server will keep redis in sync, checking CIMIS every 4 hours for new data. The server also checks data on startup.

Production

Build production client (/client/dist)

npm run dist

Cut new docker images

cd docker/cimis-mobile
docker-compose build --no-cache

Run production server

cd docker/cimis-mobile
docker-compose up

About

Webapp for viewing last two weeks of spatial CIMIS data

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages