This is a full-stack web application for creating and managing Job Hazard Analysis (JHA) documents. It enables users to create, read, update, and delete JHAs and their associated steps. It also allows users to create, read, update, and delete hazards and controls.
Backend:
- Python
- Flask
- SQLAlchemy
- Alembic
- Postgres
Frontend:
- React
- Redux
- Bulma CSS Framework
- Python3
- Pipenv
- Node.js
- NPM
-
Clone this repository
-
Install dependencies
pipenv install -r requirements.txt
-
Create a .env file based on the example with proper settings for your development environment
-
Make sure the SQLite3 database connection URL is in the .env file
-
This starter organizes all tables inside the
flask_schema
schema, defined by theSCHEMA
environment variable. Replace the value forSCHEMA
with a unique name, making sure you use the snake_case convention. -
Get into your pipenv, migrate your database, seed your database, and run your Flask app
pipenv shell
flask db upgrade
flask seed all
flask run
-
To run the React App in development, checkout the README inside the
react-app
directory.
For your convenience, the site is deployed on Render at Acme-Widgets