Go to file
Kumi 61de9ec81b
feat: convert Flask app to static site generator
Refactored the Flask application to generate a static site instead of running as a dynamic web app. Added a CI workflow to build and deploy the static site on pushes to the 'static' branch.

- Replaced Flask route handling with a function that generates HTML files using Jinja2 templates.
- Modified the argparse logic to trigger the static site generation.
- Updated the .gitignore file to exclude the build directory.
- Created a Forgejo Actions workflow to automate the build and deploy process.

This change improves performance and reduces server overhead by serving pre-rendered static content.
2024-07-01 09:56:04 +02:00
.forgejo/workflows feat: convert Flask app to static site generator 2024-07-01 09:56:04 +02:00
.vscode feat: add production debug config and enhance data handling 2024-07-01 07:04:47 +02:00
assets Merge branch 'main' into dev 2024-06-18 18:43:23 +02:00
contrib feat: Add uWSGI config for privatecoffee-dev 2024-06-02 20:43:53 +02:00
data feat(data): add new membership fees entry to finances 2024-07-01 06:51:28 +02:00
helpers feat: add production debug config and enhance data handling 2024-07-01 07:04:47 +02:00
templates feat: update home header styling and messaging 2024-06-29 11:45:11 +02:00
.gitignore feat: convert Flask app to static site generator 2024-07-01 09:56:04 +02:00
LICENSE Add LICENSE 2023-03-09 17:26:44 +00:00
main.py feat: convert Flask app to static site generator 2024-07-01 09:56:04 +02:00
README.md feat: add service icons and clean up templates 2024-05-29 15:33:18 +02:00
requirements.txt Implement dynamic service rendering with Flask 2023-12-31 13:59:13 +01:00

Private.coffee Website

Support Private.coffee!

This is the source code for the Private.coffee website.

It is a simple Flask application that generates the HTML for the website based on the services defined in the services.json file.

Development

To run the website locally, you will need to have Python 3 installed. Then, you can install the dependencies and run the website with the following commands:

pip install -r requirements.txt
python main.py

The website will be available at http://localhost:9810.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Attribution

This website is built using the Bootstrap framework and Phosphor Icons.