Getting Started
The Brunago API is in development. Some endpoints or data may change.
Quick Links
- Payment Integration - Complete guide for integrating Stripe payments
- Testimony Workflow - Understanding testimony states and lifecycle
- Authentication - How to authenticate API requests
Staging Environment
plaintext
https://api.brunago.skInstallation
Prerequisites
- Docker
- Make sure no other web servers or databases are running on the following ports:
- 80 (Application)
- 5432 (PostgreSQL)
- 6379 (Redis)
- 8108 (Typesense)
- 9000 (MinIO)
- 8900 (MinIO Console)
- 8025 (Mailpit)
- 1025 (Mailpit SMTP)
Steps
Clone the Repository
shell
git clone https://github.com/brunagosk/api.gitCreate the Environment File
shell
cp .env.example .envInstall Composer Dependencies
shell
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php85-composer:latest \
composer install --ignore-platform-reqsStart Laravel Sail
shell
./vendor/bin/sail up(Use -d for detached mode.)
Install Node Dependencies
shell
./vendor/bin/sail bun installGenerate Application Key
shell
./vendor/bin/sail artisan key:generateRun Migrations
shell
./vendor/bin/sail artisan migrate:fresh --seedAccess Points
Once Sail is running, you can access:
Application
plaintext
http://localhostMailpit (Email Testing)
plaintext
http://localhost:8025MinIO Console (S3-Compatible Storage)
plaintext
http://localhost:8900- Username:
sail - Password:
password
Services
The application uses the following Docker services:
- PostgreSQL 18 - Main database (port 5432)
- Redis - Cache and queue driver (port 6379)
- Typesense 30.1 - Search engine (port 8108)
- MinIO - S3-compatible file storage (ports 9000, 8900)
- Mailpit - Email testing (ports 1025, 8025)
Rebuilding Container Images
shell
./vendor/bin/sail build --no-cacheContainer Shell
shell
./vendor/bin/sail shellExecuting Commands
Artisan
- Locally:
php artisan route:list - Via Sail:
./vendor/bin/sail artisan route:list
- Locally:
PHP
shell./vendor/bin/sail php --version ./vendor/bin/sail php script.phpComposer
shell./vendor/bin/sail composer dump-autoload