GithubHelp home page GithubHelp logo

ykankaya / alerted-us-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kelvinn/alerted-us-web

0.0 1.0 0.0 8.94 MB

Source code for alerted.us, a website to notify you of emergency situations.

Home Page: https://alerted.us

Python 44.71% CSS 15.70% JavaScript 22.01% Shell 3.72% HTML 13.87%

alerted-us-web's Introduction

Alerted (Web)

Find out about emergency information that might impact you.

This is the code for the web application side of things written using Python/Django.

Development

Build Status

Code Health

The fastest way to get going is to use Docker Compose.

Download Docker and Docker Compose; install them. Then...

$ cd alerted-us-web
$ docker-compose start db
$ docker-compose start redis

This will install all known dependencies and configure a database for you. Next, you can set the superuser account and start Django's development server within Docker:

$ docker-compose run web python manage.py createsuperuser
$ docker-compose run web python manage.py migrate
$ docker-compose run -p web python manage.py runserver 0.0.0.0:8000

Browse to http://127.0.0.1:8000 and you should see the index page, or http://127.0.0.1:8000/admin for the admin UI.

Tests can be run like so:

$ docker-compose run web python manage.py test

The virtual framebuffer might not start automatically (is usually does). If this is the case, simple start it:

$ sudo /etc/init.d/xvfb start

Xvfb is needed for a limited number of Selenium tests.

You will probably also need to load some geocodes to test geospatial queries.

$ docker-compose run web python apps/alertdb/geocode_tools.py

The geocode_tools.py script will download 100MB of data, so don't do it over 3G :)

What's next?

  • Fix performance issues when Postgres gets large
  • Publish API docs (even basic ones just for auth)

alerted-us-web's People

Contributors

kelvinn avatar

Watchers

 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.