GithubHelp home page GithubHelp logo

mystogan99 / fight-covid19 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from podnet/fight-covid19

0.0 1.0 0.0 1.41 MB

An application to map symptomatic patients of covid19 on map and collect continuous health updates from individuals.

Home Page: https://covid19.thepodnet.com

License: MIT License

Python 63.25% CSS 0.97% JavaScript 0.05% HTML 30.96% Shell 4.77%

fight-covid19's Introduction

Health of India: Fight Covid19

An application to map symptomatic patients of covid19 on map and collect continuous health updates from individuals. Visit covid19.thepodnet.com.

image image

License : MIT

Setup

  1. Clone the repository

    $ git clone https://github.com/meticulousCraftman/Fight-Covid19
  2. Create a virtual environment using virtualenv or venv.

    $ virtualenv -p python3 venv/ 
    $ source venv/bin/activate
  3. Install python packages

    $ pip3 install -r requirements/local.txt
  4. Install OS dependencies (For linux systems only, others have to install it manually)

    $ sudo ./utility/install\_os\_dependencies.sh install
  5. Setup Postgres database (assuming you have already installed it)

    $ sudo -i -u postgres 
    $ createdb fight_covid19 
    $ createuser --interactive 
    Enter name of role to add: <username>
    Shall the new role be a superuser? (y/n) y
  6. Point django to the database instance. Create a .env file with the following content:

    # These variables are used locally
    DATABASE_NAME=postgres:///fight_covid19 
    DATABASE_USER=apoorva
    DATABASE_PASSWORD=apple007 
    DATABASE_HOST=127.0.0.1 
    DATABASE_PORT=5432
    $ touch .env
    $ nano .env
    <paste the contents of the file>
  7. Run project locally

    $ python manage.py runserver

Todo

  1. Update this README docs to post instructions for installation
  2. Tasks to perform
  3. Optimizations to perform on database

Settings

Moved to settings.

Basic Commands

Setting Up Your Users

  • To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.

  • To create an superuser account, use this command:

    $ python manage.py createsuperuser
    

For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.

Type checks

Running type checks with mypy:

$ mypy fight_covid19

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html

Running tests with py.test

$ pytest

Live reloading and Sass CSS compilation

Moved to Live reloading and SASS compilation.

Sentry

Sentry is an error logging aggregator service. You can sign up for a free account at https://sentry.io/signup/?code=cookiecutter or download and host it yourself. The system is setup with reasonable defaults, including 404 logging and integration with the WSGI application.

You must set the DSN url in production.

Deployment

The following details how to deploy this application.

fight-covid19's People

Contributors

meticulouscraftman avatar mystogan99 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.