This web application addresses a limitation in the Fatture in Cloud platform by allowing users to associate multiple categories, contracts, and cost centers with each invoice. It provides an efficient and flexible way to manage and organize invoices with just a few clicks.
- Clone the repository:
git clone https://github.com/Dear-Luca/Invoice-Manager.git
cd Invoice-Managerpip3 install -r requirements.txtThis project uses MariaDB as the database, which runs inside a Docker container.
- Create the docker-compose.yaml file:
services:
mariadb:
image: mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: "pswd"
volumes:
- YOUR_PATH:/var/lib/mysql
ports:
- 3306:3306- Start the database container with Docker Compose:
docker-compose up -d- Make sure your settings.py file is configured to connect to the MariaDB container. Example:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'your_db_name',
'USER': 'your_db_user',
'PASSWORD': 'your_db_password',
'HOST': 'localhost',
'PORT': '3306',
}
}- Run database migrations:
python3 manage.py migratePopulate the database:
python3 manage.py populate_dbpython3 manage.py runserver