Code Monkey home page Code Monkey logo

southwark-bops's Introduction

Southwark BOPS

This Southwark BOPS (Back Office Planning System) prototype is a proof of concept of integration with the Hackney SMPA (Submit My Planning Application).

It is capable of displaying a list of all applications exposed on the SMPA API and giving some details for each of them:

  • summary of proposal
  • property details:
    • address
    • property type
    • whether it's a listed building
    • whether it's in a conservation area
  • map with property boundaries
  • uploaded documents

Configuration

Environment variables

The following environment variables must be present:

Variable Description
SMPA_API_KEY Hackney SMPA API key
MAPBOX_ACCESS_TOKEN Mapbox access token
BASIC_AUTH_USER Username to login to app (blank to allow public)
BASIC_AUTH_PASS Password to login to app (blank to allow public)

Automatically update SMPA API key on Heroku

In case you are running under Heroku and need to automatically update the SMPA API key, you can use the script in bin/update-smpa-api-key-on-heroku.sh. It requires some variables to be set:

Variable Description
HEROKU_API_KEY Heroku API key
HEROKU_APP_NAME Name of the Heroku app to have the environment updated
SMPA_EMAIL Email to login to SMPA backend
SMPA_PASSWORD Password to login to SMPA backend

You're probably interested in adding it to the heroku scheduler addon:

heroku addons:create scheduler:standard
heroku addons:open scheduler

Running

As a regular rails app, running the following line should do the trick:

bundle exec rails s

southwark-bops's People

Contributors

pudiva avatar dependabot[bot] avatar

Watchers

James Cloos 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.