ploughshares/README.md

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

The application can be run using Docker:

# Run with PostgreSQL database
docker-compose up --build

This will:

  1. Build the Docker image
  2. Start PostgreSQL database
  3. Initialize the database schema
  4. Start the application on port 5001

Stopping the Application

# Stop all containers
docker-compose down

Running Locally

  1. Start PostgreSQL:
./start_postgres.sh
  1. Initialize the database:
python init_db.py
  1. 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:

License

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