2.0 KiB
2.0 KiB
Project Ploughshares
Transaction Management System for Project Ploughshares.
Version
The current version is stored in the VERSION
file. Use the versionbump.sh
script to update the version number.
# To bump the patch version (e.g., 1.0.0 -> 1.0.1)
./versionbump.sh patch
# To bump the minor version (e.g., 1.0.0 -> 1.1.0)
./versionbump.sh minor
# To bump the major version (e.g., 1.0.0 -> 2.0.0)
./versionbump.sh major
Docker Setup
The application is containerized using Docker and can be run using docker-compose.
# Build the containers
docker-compose build
# Start the application
docker-compose up
The application will be available at http://localhost:5001.
Features
- Transaction management (create, view, edit)
- Document uploads and attachments
- API endpoints for programmatic access
- PostgreSQL database for data storage
Running the Application
Using Docker (Recommended)
The application can be run using Docker:
# Run with PostgreSQL database
docker-compose up --build
This will:
- Build the Docker image
- Start PostgreSQL database
- Initialize the database schema
- Start the application on port 5001
Stopping the Application
# Stop all containers
docker-compose down
Running Locally
- Start PostgreSQL:
./start_postgres.sh
- Initialize the database:
python init_db.py
- Start the application:
python app.py
API Documentation
API documentation is available at:
Testing
To generate test data:
python generate_test_data.py
Accessing the Application
The application runs on all addresses (0.0.0.0) and is accessible via:
- http://localhost:5001 (Docker)
- http://localhost:5001 (Local)
- http://:5001 (Network access)
License
This project is licensed under the MIT License - see the LICENSE file for details.