This is a simple Flask application that displays cement strength data. The data is stored in a PostgreSQL database.
Follow these steps to run the application locally.
- Python (version specified in
runtime.txt
orrequirements.txt
) - PostgreSQL
-
Clone the repository:
git clone https://github.com/kevykibbz/concrete-strength.git cd concrete-strength
-
Install dependencies:
pip install -r requirements.txt
-
Set up the database:
- Create a PostgreSQL database.
- Update the database connection URI in the
.env
file.
-
Apply database migrations:
flask db init flask db migrate flask db upgrade
Run the Flask application:
python run.py
The app will be accessible at http://localhost:5000
.
Follow the steps mentioned in the Heroku Deployment Section.
app
: Contains the main Flask application.migrations
: Stores database migration files.templates
: HTML templates for the views.config.py
: Configuration settings for the app.run.py
: Script to run the application.
Feel free to contribute to this project. Create a fork, make your changes, and submit a pull request.
visit: https://concrete-strength-hub-554468d56977.herokuapp.com/ for application preview.