https://github.com/masb0ymas/gofi
Gofi Gofi Guber ( Golang Fiber ) with Sqlx
https://github.com/masb0ymas/gofi
gofiber golang repository-pattern sqlx
Last synced: 2 months ago
JSON representation
Gofi Gofi Guber ( Golang Fiber ) with Sqlx
- Host: GitHub
- URL: https://github.com/masb0ymas/gofi
- Owner: masb0ymas
- License: mit
- Created: 2023-04-23T03:39:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T02:51:02.000Z (5 months ago)
- Last Synced: 2025-02-05T10:49:32.572Z (4 months ago)
- Topics: gofiber, golang, repository-pattern, sqlx
- Language: Go
- Homepage:
- Size: 20.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Gofi (Golang Fiber)
### Prerequisites
- Go 1.19+
- Docker
- Docker Compose### Setup
1. Clone the repository: `git clone https://github.com/masb0ymas/gofi.git`
2. Navigate to the project directory: `cd gofi`
3. Run the setup script: `bash setup.sh`
4. Create a database according to `.env`
5. Install golang-migrate: `go install github.com/golang-migrate/migrate/v4/cmd/migrate@latest`
6. Run migrations: `make migration-up`### Usage
1. Navigate to the project directory: `cd gofi`
2. Run the server: `make dev`
3. For production, run the server with command: `make start`
4. Access the API: `http://localhost:8000`