Skip to content

Python Flask + Postgresql Application for Company's analysis on employees with COVID and Injuries.

Notifications You must be signed in to change notification settings

chiragmatkar/PrevWorks

Repository files navigation

PrevWorks

Heroku Deployment

https://prevworks.herokuapp.com/

Project Local Install

First make sure you have python3 installed and give further commands to install the application

Clone the project locally and run below commands to setup local python env , install required libraries and then run the flask app

pip install virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt

Database Local Setup

  • install postgresql
  • create a database prevworks
  • run create_table.sql and create all required tables
  • run below commands for configuring db env
export ENVIRONMENT=LOCAL
export DATABASE_URL=postgresql://postgres@localhost:5432/prevworks

Local Project Run

cd PrevWorks
export FLASK_APP=flaskr
flask run

Prevworks UI Design

Authentication Pages Employee Pages

Profile Page

  • Includes information about the user and forms that allow the user to change information about the user such as address and password.

Screenshot 2022-04-26 at 4 14 51 PM

Companies Page

  • Includes information about the companies that the employee is a part of and allows them to add and remove companies from their list.

Screenshot 2022-04-26 at 4 18 49 PM

Report Injury

  • Employees can submit a report of their injuries on the Report Injury page.
  • The page provides a form to report covid-19 symptoms and a body diagram to select injured body parts.
  • Employees can report the injured date and descriptions through the provided text box.
  • Covid-19 Symptoms Report

Screenshot 2022-04-26 at 4 21 25 PM

Body Diagram

  • Employees can report injured body parts by clicking on the body diagram.
  • Multiple body parts can be selected and the selected parts are visually differentiable by color.
  • The color of the selected parts changes to orange. Employees can deselect by clicking on the part again.

Screenshot 2022-04-26 at 4 24 39 PM

  • Submit Report
  • Screenshot 2022-04-26 at 4 25 44 PM

About

Python Flask + Postgresql Application for Company's analysis on employees with COVID and Injuries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •