Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamnasrudin03/go-skeleton-fiber
Skeleton project Golang with framework fiber
https://github.com/adamnasrudin03/go-skeleton-fiber
gofiber golang skeleton-template
Last synced: about 1 month ago
JSON representation
Skeleton project Golang with framework fiber
- Host: GitHub
- URL: https://github.com/adamnasrudin03/go-skeleton-fiber
- Owner: adamnasrudin03
- License: mit
- Created: 2024-06-24T02:49:52.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T13:28:47.000Z (3 months ago)
- Last Synced: 2024-10-01T09:11:14.427Z (about 2 months ago)
- Topics: gofiber, golang, skeleton-template
- Language: Go
- Homepage: https://adamnasrudin.vercel.app/blog/skeleton-project-golang
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-skeleton-fiber
Skeleton project golang with framework Fiber## Development Guide
### Collection Using Postman
- ./go-skeleton.postman_collection.json
### Installation
- Clone this repo
```sh
git clone https://github.com/adamnasrudin03/go-skeleton-fiber.git
```- Copy `.env.example` to `.env`
```sh
cp .env.example .env
```
- Setup local database
- Start service API
```sh
go run main.go
```### Coverage Unit test
```sh
make cover
```## Build project by docker
- check ip address in terminal
```sh
ipconfig
```
- change data environment in file ./docker-compose.yml
- build with docker compose
```sh
docker-compose -f "docker-compose.yml" up -d --build
```
- with make file
```sh
make docker-compose
```
## Structure Response RESTfull API
- Error
```json
{
"status": "status error",
"code": 10, // code custom error
"message": {
"id": "message error language Indonesian",
"en": "message error language English"
}
}
```- Success Single Data
```json
{
"status": "Created",
"data": {}
}
```- Success Multiple Data
```json
{
"status": "Success",
"meta": {
"page": 1,
"limit": 10,
"total_records": 3,
"total_pages": 1
},
"data": []
}
```- Success response message
```json
{
"status": "Created",
"message": "data created"
}
```- Success response Multiple message
```json
{
"status": "Created",
"message": {
"id": "Data berhasil dibuat",
"en": "Data created successfully"
}
}
```
Connect with me: