Getting Started
These instructions will guide you through setting up and running the Fintech Platform on your local machine for development and testing.
🛠️ Prerequisites
- Go: Version 1.22 or higher. Download from golang.org/dl. 🐹
- Docker & Docker Compose: For PostgreSQL and running the app in containers. docker.com 🐳
- PostgreSQL Client (Optional): Tools like
psqlor GUI clients (e.g., DBeaver, pgAdmin) 🐘
⬇️ Installation
- Clone the repository:
- Set up Environment Variables:
At a minimum, set a strong value for AUTH_JWT_SECRET in .env.
▶️ Running the Application
🐳 Using Docker Compose (Recommended)
- The app will be at
http://localhost:3000. - PostgreSQL at port
5432.
🏠 Running Locally (without Docker for Go app)
- Start PostgreSQL with Docker Compose:
- Run the Go app:
🖥️ Running the CLI
📚 Running the Documentation Site
- Docs site:
http://localhost:8000/fintech/ - Source files live under
docs/ - Navigation is defined in
mkdocs.yml(nav:) - Add or update docs:
- Edit an existing page under
docs/(hot-reloads whilemkdocs serveis running) - Add a new
.mdpage under the closest section folder (e.g.docs/payments/,docs/architecture/,docs/currency/) - Add the page to
mkdocs.ymlundernav:so it shows up in the sidebar
🗄️ Migrations
- Create a new migration:
- Apply all migrations:
- Revert last migration:
- See
internal/migrations/for migration files.
💡 Tips
- The app loads env vars from
.env(viagodotenv). - For payment/webhook testing, use the mock provider or call the webhook endpoint manually.
- See docs/index.md for navigation and more guides.