Git Product home page Git Product logo

counterfactualcovid19's Introduction

CounterfactualCovid19

Welcome to the Counterfactual Covid19 repository. This is a Leeds-Turing project that aims to visualise the counterfactual history of the growth of COVID-19 cases in Europe.

This repository contains two subdirectories:

  • backend: This directory contains Django code that loads COVID-19 data from this repo and produces counterfactual simulations (the code for the counterfactual simulations is here).
  • frontend: This directory contains react-leaflet code to visualise the COVID-19 data and counterfactual simulations based on this repo.

Manual setup

Prerequisites

Both the frontend and the backend have their own set of prerequisites that you will need to install in order to run this app.

Running the app

Ensure that the PostgreSQL database is running:

pg_ctl -D /usr/local/var/postgres start

Then run the Django backend from the backend/ directory with:

poetry run python3 manage.py runserver

followed by the React frontend from the frontend/ directory with:

npm start

The app should then be available at http://localhost:3000

Docker setup

Prerequisites

Docker is the only prerequisite for the Dockerised version of the app.

Running the app

Launch the app by running the following:

docker-compose up -d

This will create a series of persistent docker-compose images so that future runs will be faster to start up. Note that although npm reports several vulnerabilities, we are using the latest versions of all requested libraries - no security fixes are available.

To cleanup all images and force a full rebuild do

docker-compose down -v --rmi all --remove-orphans

counterfactualcovid19's People

Contributors

crangelsmith avatar jemrobinson 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.