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
└---- /handler
└---- /middleware folder for add middleware
└---- /models
└---- /platform
└--------- /cache folder with in-memory cache setup functions
└--------- /database folder with database setup functions
└---- /routes folder for describe routes
└---- /utils folder with utility functions
.env
configuration
ENV=development
PORT=5000
DATABASE_URL=postgres://postgres:password@localhost:5432/jokesbapak2
REDIS_URL=redis://@localhost:6379
SENTRY_DSN=