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
Used packages
Directory structure
.
├── app
│ └── v1
│ ├── app.go - v1 application entry point
│ ├── core - Pure business logic
│ ├── handler - Route handler
│ ├── middleware - App middleware handler
│ ├── models - Output and input schema
│ ├── platform
│ │ ├── cache - In-memory cache setup functions
│ │ └── database - Database setup functions
│ ├── routes - Routes definition & assignment
│ └── utils - Utility functions
├── Dockerfile - Docker image for API
├── go.mod - Module information & dependencies
├── go.sum - Packages lock file
├── main.go - Application entry point
└── README.md - You are here
.env
configuration
ENV=development
PORT=5000
DATABASE_URL=postgres://postgres:password@localhost:5432/jokesbapak2
REDIS_URL=redis://@localhost:6379
SENTRY_DSN=