Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/execiety/comindo-presence-backend
Backend for the PT Comindo Presence Application, Build With Gofiber
https://github.com/execiety/comindo-presence-backend
go gofiber
Last synced: 7 days ago
JSON representation
Backend for the PT Comindo Presence Application, Build With Gofiber
- Host: GitHub
- URL: https://github.com/execiety/comindo-presence-backend
- Owner: ExeCiety
- Created: 2023-11-13T18:00:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T07:39:02.000Z (10 months ago)
- Last Synced: 2024-09-16T05:55:05.937Z (about 2 months ago)
- Topics: go, gofiber
- Language: Go
- Homepage:
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Presensi Comindo Backend
## How to Install
1. Clone this repository
2. cp .env.example .env and fill the environment variables
3. Run `go mod tidy` to install dependencies
4. Run `go install github.com/cosmtrek/air@latest` to install air
5. Run `air` to start the server## How to Install Via Docker
1. Read [Containerize README.md](https://github.com/ExeCiety/containerize-presensi-comindo/blob/main/README.md)## Migration
### Create migration
```
go run main.go migrate --create=
```### Migrate
```
go run main.go migrate
```### Rollback
```
go run main.go migrate rollback
```
Note: rollback argument will only rollback the last migration, if you want to rollback multiple migration, you can use --step flag
Example: go run main.go migrate rollback --step=2## Seeder
### Create Seeder
```
go run main.go seeder --create=
```### Seedling
```
go run main.go seeder
```### Rollback
```
go run main.go seeder rollback
```
Note: rollback argument will only rollback the last seeder, if you want to rollback multiple migration, you can use --step flag
Example: go run main.go seeder rollback --step=2### API Documentation
Postman Documenter
https://documenter.getpostman.com/view/7865721/2s9YkuXxJB