https://github.com/guidanoli/boletos-flask
https://github.com/guidanoli/boletos-flask
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guidanoli/boletos-flask
- Owner: guidanoli
- License: gpl-3.0
- Created: 2024-02-09T02:32:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T15:34:53.000Z (7 months ago)
- Last Synced: 2025-03-04T16:37:02.078Z (7 months ago)
- Language: Python
- Size: 161 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boleto Manager using Flask
"Boleto" is a common billing system used in Brazil.
This project aims to organize boletos and their payments.## Dependencies
- Python 3.11 with `sqlite3` built-in
## Setup
```sh
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
flask init-db
```## Run server
```sh
flask run
```## Configure system to always run server in debug mode on startup
Here's a step-by-step guide for configuring your system to run the server on startup.
Superuser privileges might be necessary to run some commands.1. Create the following file under `/etc/systemd/system/boletos.service`.
You can replace `USERNAME` with your username,
and `REPOSITORY-PATH` with the path to the copy of this repository on your local machine.```service
[Unit]
Description=Manage the payment of boletos with an easy-to-use web interface!
After=network.target[Service]
User=
WorkingDirectory=
ExecStart=/.venv/bin/flask run
Restart=always[Install]
WantedBy=multi-user.target
```2. Change the mode of this file to 644.
```sh
chmod 644 /etc/systemd/system/boletos.service
```3. Start the service.
```sh
systemctl start boletos
```4. Check the status of the service.
```sh
systemctl status boletos
```5. Enable the service (to run on startup).
```sh
systemctl enable boletos
```