Giter Site home page Giter Site logo

neilbmclaughlin / flood-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from defra/flood-service

0.0 0.0 0.0 1.04 MB

Check flood risk - alpha - flood-service

Home Page: https://flood-alpha.aws.defra.cloud/

License: Other

JavaScript 99.62% Nunjucks 0.38%

flood-service's Introduction

Build statusQuality Gate StatusCoverage

flood-service

This is the service tier node application supporting the Check for flooding service https://github.com/DEFRA/flood-app

Environment variables

Create a .env file at the root of the project to set your environment variables locally, which is especially useful during development. The dotenv package facilitates this by automatically loading these variables at application start. This approach is recommended as a simpler alternative to global settings, like those in .bashrc.

For DEFRA employees, these environment variables are available in our private lfwconfig repository.

name description required default valid notes
NODE_ENV Node environment no production development, dev, test, tst, production
PORT Port number no 3000
FLOOD_SERVICE_CONNECTION_STRING PG Connection String yes
FLOOD_SERVICE_S3_ACCESS_KEY S3 Access Key yes
FLOOD_SERVICE_S3_SECRET_ACCESS_KEY S3 Secret Key yes
FLOOD_SERVICE_S3_BUCKET S3 Bucket yes
FLOOD_SERVICE_S3_TIMEOUT S3 Http Timeout no 10000 (10s)
ERRBIT_PROJECT_KEY Errbit Project Key no
ERRBIT_ENABLED Errbit Enabled no

Prerequisites

Local or remote Postgres/Postgis database installed from: https://github.com/DEFRA/flood-db, connection string FLOOD_SERVICE_CONNECTION_STRING

AWS serverless lfw-data tier processing telemetry, forecast, 5DF, fwis data and storing in the database: https://github.com/DEFRA/lfw-data

S3 Bucket storing some of the processed data files, referred to as FLOOD_SERVICE_S3_BUCKET in the env vars

Node v8+

Testing the application

$ npm i
$ npm run test

Running the application

$ npm i
$ npm run start:local

flood-service's People

Contributors

teddmason avatar jfsch avatar neilbmclaughlin avatar leegordon83 avatar davidjamesstone avatar actions-user avatar maxcbc avatar cliff-defra avatar keyurx11 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.