Giter Site home page Giter Site logo

prismaclouddevsecopsscanner / alphagov-emergency-alerts-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphagov/emergency-alerts-admin

0.0 0.0 0.0 347.37 MB

GOV.UK Emergency Alerts web application

License: MIT License

Shell 0.10% JavaScript 10.78% Python 69.17% Makefile 0.17% HTML 16.77% Dockerfile 0.03% SCSS 2.92% Jinja 0.05% Procfile 0.01%

alphagov-emergency-alerts-admin's Introduction

emergency-alerts-admin

GOV.UK Emergency Alerts admin application - https://admin.emergency-alerts.service.gov.uk/

  • Register and manage users
  • Create and manage services
  • Author and approve emergency alerts

Setting up to run the Admin UI Server locally

Local Development Environment Setup

Ensure that you have first followed all of the local development environment setup steps, that can be found here, before attempting to run the Admin UI Server locally.

Python version

You can find instructions on specifying the correct Python version here.

NodeJS & NPM

If you don't have NodeJS on your system, install it with homebrew.

brew install node

nvm is a tool for managing different versions of NodeJS. Follow the guidance on nvm's github repository to install it.

Once installed, run the following to switch to the version of NodeJS for this project. If you don't have that version, it should tell you how to install it.

nvm use

environment.sh

The instructions on setting up the environment.sh file can be found here.

Running the Admin and Api services with Postgres

Please refer to the README in the /emergency-alerts-tooling repository, in the /emergency-alerts-tooling/compose folder.

A note on Webauthn relying party URL

For webauthn to work, the relying party URL must be equal to the domain, or be equal to a registrable sub-domain. The lower environments, preview and staging, have URLs matching the Route 53 DNS entries. However, production is a special case, so in /emergency-alerts-admin/app/webauthn_server.py, the production URL is defined as a sub-domain to prevent environment names being prefixed to the URL as with the lower environments.

To run the application

The instructions for running the Admin UI Server can be found here.

Any Python code changes you make should be picked up automatically in development. If you're developing JavaScript code, run npm run watch to achieve the same.

To test the application

Current instructions for unit tests can be found here.

To continuously run js tests, run npm run test-watch.

To run a specific JavaScript test, you'll need to copy the full command from package.json.

Further docs

alphagov-emergency-alerts-admin's People

Contributors

adam-c-mitchell avatar allait avatar antimega avatar ashimali avatar bandesz avatar benthorner avatar blesseddev avatar catherineheywood avatar crystalpea avatar gov-cjwaszczuk avatar idavidmcdonald avatar imdadahad avatar jonathan-owens-gds avatar karlchillmaid avatar kentsanggds avatar klssmith avatar leohemsted avatar lolylena avatar lstevens-cabinet-office avatar mannickutd avatar minglis avatar pyup-bot avatar quis avatar richardc0 avatar rjbaker avatar sakisv avatar samuelhwilliams avatar servingupaces avatar tombye avatar venusbb 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.