Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
/ flood Public archive

ReactJS frontend web application for monitoring USGS/NWS flood gauges and river levels with SMS subscription availability

Notifications You must be signed in to change notification settings

TNRIS/flood

Repository files navigation

texas flood information viewer

Setup

Install Node. Version 6 will not work, use version 5.12: nvm use 5

Install Packages: npm install

To retrieve the secrets file, install ansible

Developing

  1. place a copy vault-password.txt into the root of this repo ~/flood. You might need to change spaces to newlines. cd into the root folder and run make pull-secrets to quickly download, decrypt, and properly place the secrets file.
    • Alternatively (without ansible), make a copy of src/keys/secrets.sample.es, fill out and save as src/keys/secrets.es
  2. npm start to start a hot-reloading development web server
  3. Open browser to http://localhost:3545

Production Build

  1. npm run dist will produce a production build in the /dist/ folder

Favicons, Icons, & Images

https://realfavicongenerator.net/

  1. Favicon.ico is converted to PNG format and then uploaded to the realfavicongenerator. Should be a minimum pixel size of 144x144. This generator will offer numerous options for specific shortcut icons and favicons for a multitude of devices.
  2. Go through the settings and tweak the various ones as necessary.
  3. Be sure to declare the 'path' in the last settings option ("Favicon Generator Options") to be /icons. Then click to Generate
  4. After generation is complete, download the Favicon Package and use it to replace the images within /src/images/icons. Then copy the HTML code and use it to replace the pre-existing image code within /src/index.swig

About

ReactJS frontend web application for monitoring USGS/NWS flood gauges and river levels with SMS subscription availability

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7