Giter VIP home page Giter VIP logo

where_to_build's Introduction

Where_to_Build

Where_to_Build

In this project we aim to build new health centers at places where there is a lack of medical services using a dynamic mapping system. The tools that we have used so far are web scraping , python3(for making our base code run).Website is constructed using HTML, CSS, Bootstrap, Javascript, Flask(_WTForms,_Bootstrap,etc.), SQLAlchemy and Sqlite(as database for login information). The coronavirus pandemic has shown us all in just a few days how fragile our way of life really is. Basic certainties about our health, that of our loved ones and our normal way of life can no longer be taken for granted.Opening temporary or permanent medical centers at the right place for now is the basic aim so that for any sort of treatment no one has to travel long distances and can be cured at nearby places itself and medical services can reach a large number of people at same time.

CHECK Demo.mp4 for quick demonstration.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites Installation

Install python3(latest version).

In the project directory, open Terminal(Mac/Linux) or Command Prompt(Windows)

    pip install flask   
    pip install flask_bootstrap 
    pip install flask_wtf 
    pip install flask_sqlalchemy 

Usage

Once done with the project setup, open the project in an IDE; for example - PyCharm, Visual Studio Code, etc.

NOTE : Be sure to select appropriate interpreter. Sometimes it may get deselected.

From Command Line Interface

  • Create Virtual Environment
pip install virtualenv

virtualenv myenv

Mac / Linux User

source myenv/bin/activate

Windows Users

myenv\Scripts\activate
  • Head to the project directory containing main.py

  • Open Terminal(Mac/Linux)/Command Prompt (Windows) there.

  • Follow accordingly โฌ‡๏ธ

    1. Unix Bash (Linux, Mac, etc.):
    $ export FLASK_APP=main/py
    $ flask run
    
    1. Windows CMD:
    > set FLASK_APP=main.py
    > flask run
    
    1. Windows PowerShell:
    > $env:FLASK_APP = "1"
    > flask run
    
  • Output:

 $ flask run
 Serving Flask app "hello"
 Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  • Copy http://127.0.0.1:5000/ and open it in a browser and Voila!

  • For Quick Demo, click on Get Demo Here tab. Best among 2000 registered properties mapped for building new hospitals

Without using shell

  1. Open main.py
  2. Hit Run, if using any IDE as mentioned above.

Contribution

Pleas read Contribution.md ๐Ÿ‘† for details on our code of conduct, and the process for submitting pull requests to us.

Authors

Initial Work

  1. Apoorve Goyal
  2. Sanjana Maheshwari
  3. Saloni Gupta

where_to_build's People

Contributors

apoorve73 avatar dependabot[bot] avatar salonigupta1 avatar sanjana-302 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

where_to_build's Issues

Refactor main.py

I've selected main.py for refactoring, which is a unit of 73 lines of code and 8 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐Ÿ‘

Here's the gist of this guideline:

  • Definition ๐Ÿ“–
    Limit the number of branch points (if, for, while, etc.) per unit to 4.
  • Whyโ“
    Keeping the number of branch points low makes units easier to modify and test.
  • How ๐Ÿ”ง
    Split complex units with a high number of branch points into smaller and simpler ones.

You can find more info about this guideline in Building Maintainable Software. ๐Ÿ“–


โ„น๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐Ÿ”ฒ next to them. The risk profile below the candidates signals (โœ…) when it's enough! ๐Ÿ


Good luck and happy coding! :shipit: โœจ ๐Ÿ’ฏ

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.