Event Management System
Prerequisite 🏆
- Go Version
>= go 1.20
- PostgreSQL Version
>= version 15.0
How To Use
There are 2 ways to do running
With Docker
- Copy the example environment file and configure it:
cp.env.example .env
- Build Docker
docker-compose build --no-cache
- Run Docker Compose
docker compose up -d
Without Docker
- Clone the repository or Use This Template
git clone https://github.com/pankop/event-porto.git
- Navigate to the project directory:
cd go-gin-clean-starter
- Copy the example environment file and configure it:
cp .env.example .env
- Configure
.env
with your PostgreSQL credentials:
DB_HOST=localhost
DB_USER=postgres
DB_PASS=
DB_NAME=
DB_PORT=5432
- Open the terminal and follow these steps:
- Run the application:
go run main.go
Run Migrations and Seeder
To run migrations and seed the database, use the following commands:
go run main.go --migrate --seed
Migrate Database
To migrate the database schema
go run main.go --migrate
This command will apply all pending migrations to your PostgreSQL database specified in .env
Seeder Database
To seed the database with initial data:
go run main.go --seed
This command will populate the database with initial data using the seeders defined in your application.
API Documentation
On progress documenting API
Issue / Pull Request Template
The repository includes templates for issues and pull requests to standardize contributions and improve the quality of discussions and code reviews.
- Issue Template: Helps in reporting bugs or suggesting features by providing a structured format to capture all necessary information.
- Pull Request Template: Guides contributors to provide a clear description of changes, related issues, and testing steps, ensuring smooth and efficient code reviews.