jokes-bapak2/api
Reinaldy Rafli b2965fccc2
chore: bump deps
2023-08-12 12:26:05 +07:00
..
core Fix typo (#17) 2022-10-06 08:54:43 +07:00
handler chore: handle codacy issues 2022-09-03 21:35:20 +07:00
routes chore: tackle issues 2022-09-03 21:09:26 +07:00
samples feat: rewritten the most part of it 2022-09-03 17:53:46 +07:00
utils refactor: directory structure 2021-10-30 10:24:53 +07:00
.dockerignore build: config 2021-07-15 02:13:30 +07:00
.env.example chore: change domain name 2022-09-10 20:05:46 +07:00
.gitignore build: setup docker compose 2021-07-16 02:21:22 +07:00
Dockerfile chore: bump deps 2023-08-12 12:26:05 +07:00
README.md chore: bump dependencies 2021-11-09 10:57:17 +07:00
documentation.json chore: change domain name 2022-09-10 20:05:46 +07:00
documentation.yaml chore: change domain name 2022-09-10 20:05:46 +07:00
favicon.png refactor: directory structure 2021-10-30 10:24:53 +07:00
go.mod chore: bump deps 2023-08-12 12:26:05 +07:00
go.sum chore: bump deps 2023-08-12 12:26:05 +07:00
main.go chore: declare explicit configs 2022-12-03 08:51:51 +07:00

README.md

Jokes Bapak2 API

Still work in progress

Development

# Install modules
$ go mod download
# or
$ go mod vendor

# run the local server
$ go run main.go

# build everything
$ go build main.go

There is a placeholder data ready for you to query it manually in /platform/database/placeholder.sql. Have a good time developing!

Used packages

Name Version Type
gofiber/fiber v2.21.0 Framework
jackc/pgx v4.13.0 Database
go-redis/redis v8.11.4 Cache
allegro/bigcache v3.0.1 Cache
joho/godotenv v1.4.0 Config
getsentry/sentry-go v0.11.0 Logging
aldy505/phc-crypto v1.1.0 Utils
Masterminds/squirrel v1.5.1 Utils
aldy505/bob v0.0.4 Utils
gojek/heimdall v7.0.2 Utils
georgysavva/scany v0.2.9 Utils
pquerna/ffjson v0.0.0-20190930134022-aa0246cd15f7 Utils

Directory structure

.
├── core                  - Pure business logic
│  ├── administrator
│  ├── joke
│  ├── schema
│  ├── submit
│  └── validator
├── Dockerfile            - Docker image for API
├── documentation.json    - Swagger documentation
├── documentation.yaml    - Swagger documentation
├── favicon.png
├── go.mod                - Module declaration
├── go.sum                - Checksum for modules
├── handler               - Route handlers
│  ├── health
│  ├── joke
│  └── submit
├── main.go               - Application entry point
├── middleware            - Route middlewares
├── platform              - Third party packages
│  └── database
├── README.md             - You are here
├── routes                - Route definitions
└── utils                 - Utility functions

.env configuration

ENV=development
PORT=5000

DATABASE_URL=postgres://postgres:password@localhost:5432/jokesbapak2
REDIS_URL=redis://@localhost:6379

SENTRY_DSN=