Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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