• Stars
    star
    264
  • Rank 155,103 (Top 4 %)
  • Language
    Go
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“– Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.

๐Ÿ“– Tutorial: Build a RESTful API on Go

Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.

๐Ÿ‘‰ The full article is published on March 22, 2021, on Dev.to: https://dev.to/koddr/build-a-restful-api-on-go-fiber-postgresql-jwt-and-swagger-docs-in-isolated-docker-containers-475j

fiber_cover_gh

Quick start

  1. Rename .env.example to .env and fill it with your environment values.
  2. Install Docker and migrate tool for applying migrations.
  3. Run project by this command:
make docker.run

# Process:
#   - Generate API docs by Swagger
#   - Create a new Docker network for containers
#   - Build and run Docker containers (Fiber, PostgreSQL)
#   - Apply database migrations (using github.com/golang-migrate/migrate)
  1. Go to your API Docs page: 127.0.0.1:5000/swagger/index.html

Screenshot

P.S.

If you want more articles like this on this blog, then post a comment below and subscribe to me. Thanks! ๐Ÿ˜˜

And, of course, you can support me by donating at LiberaPay. Each donation will be used to write new articles and develop non-profit open-source projects for the community.

Support author at LiberaPay

โš ๏ธ License

MIT ยฉ Vic Shรณstak & True web artisans.

More Repositories

1

goodshare.js

๐Ÿš€ ะ useful modern JavaScript solution for share a link from your website to social networks or mobile messengers. Easy to install and configuring on any of your website!
JavaScript
508
star
2

vue-goodshare

๐Ÿฟ Vue.js component for social share. A simple way to share a link on the pages of your website in the most popular (and not so) social networks. Powered by goodshare.js project.
Vue
449
star
3

a2hs.js

๐Ÿ“ฒ A useful modern JavaScript solution that helps your website users to add (install) a progressive web application (PWA) to the Home Screen of their mobile iOS devices.
JavaScript
158
star
4

bottle-vue-kickstart

๐Ÿ• Very basic Bottle kickstart kit with Vue.js and Webpack. Included Axios, Autoprefixer, Babel, Webpack config, demo app with Bulma and Web font loader.
HTML
91
star
5

yandex-music-desktop

๐ŸŽต Yandex.Music Desktop (un-official port of website). Please note: this is only webview port of Yandex.Music website as desktop app for macOS, Windows 10 and GNU/Linux!
C
84
star
6

useful-playbooks

๐Ÿšš Useful Ansible playbooks for easily deploy your website or webapp to absolutely fresh remote virtual server and automation many processes. Only 3 minutes from the playbook run to complete setup server and start it.
73
star
7

example-embed-static-files-go

The easiest way to embed static files into a binary file in your Golang app (no external dependencies).
Go
46
star
8

tutorial-go-fiber-rabbitmq

๐Ÿ“– Tutorial: Working with RabbitMQ in Golang by examples.
Go
37
star
9

sweetconfirm.js

๐Ÿ‘ŒA useful zero-dependencies, less than 434 Bytes (gzipped), pure JavaScript & CSS solution for drop an annoying pop-ups confirming the submission of form in your web apps.
JavaScript
36
star
10

just-scroll

Simple indicate the possibility of scrolling on a page with ะกSS3 animation.
Sass
34
star
11

example-static-website-docker-nginx-certbot

Example static website with Docker, Nginx and Certbot
Shell
32
star
12

example-go-react-macos-app-1

Example native macOS app on Go (Golang) and React.js
JavaScript
30
star
13

tutorial-go-asynq

๐Ÿ“– Tutorial: Asynq. Simple, reliable & efficient distributed task queue for your next Go project.
Go
24
star
14

drupal_8_unset_html_head_link

๐Ÿค– Module for unset any wrong HTML links (like rel="delete-form", rel="edit-form", etc.) from head on Drupal 8.x websites. This is trust way to grow up position in SERP Google, Yandex, etc.
18
star
15

example-go-config-yaml

Example Go web app with YAML config.
Go
18
star
16

example-go-grpc-server

Example gRPC server on Go
Go
14
star
17

actions-sapper

:octocat: GitHub Action for generating a static website with Sapper.
Shell
11
star
18

vsac

โœ… ะutomation of routine tasks on a new server for humans. Only verified configs and best practices. Just git clone and run it!
Shell
10
star
19

shrts.website

๐Ÿ”— A links shortener project for websites & useful snippets for internal (and not really) needs. Each URL in the list below is checked and leads to the corresponding original link using a 301 (Moved Permanently) redirect.
10
star
20

yandex-radio-desktop

๐Ÿ“ป Yandex.Radio Desktop (un-official port of website). Please note: this is only webview port of Yandex.Radio website as desktop app for macOS and Windows 10 (GNU/Linux coming soon)!
Makefile
8
star
21

tutorial-go-i18n

๐Ÿ“– Tutorial: An easy way to translate your Golang application
Go
7
star
22

json2csv

๐Ÿšด The parser can read given folder with JSON files, filtering and qualifying input data with intent & stop words dictionaries and save results to CSV files by given chunk size.
Go
7
star
23

example-github-actions

Automate that! ๐Ÿ‘Š A practical guide to GitHub Actions: build & deploy a static 11ty website to remote virtual server after push.
JavaScript
7
star
24

quart-logo

๐Ÿ–ผ Official Quart logo (with style guide).
6
star
25

gosl

๐Ÿ“š The Go Snippet Library provides snippets collection for working with routine operations in your Go programs with a super user-friendly API and the most efficient performance.
Go
6
star
26

go-email-sender

๐Ÿ“ฎ Simple (but useful) email sender written in pure Go v1.17. Support HTML templates and attachments.
Go
6
star
27

reactless-ts

โœจ A handy production-ready template for rapidly frontend development that you've often dreamed of. Small, but with full backward compatibility to all of React.js ecosystem, but without its overhead!
TypeScript
6
star
28

do-spaces-microservice

๐Ÿงบ Microservice for upload, remove and list objects to/from your DigitalOcean Spaces. Production-ready, zero configuration, working out of the box!
Go
4
star
29

github-backup-automation

โœŠ A Docker container to backup automation for your GitHub accounts (repositories, gists, organizations).
Shell
4
star
30

csv2api

๐Ÿ„โ€โ™‚๏ธ The parser reads the CSV file with the raw data, filters the records, identifies fields to be changed, and sends a request to update the data to the specified endpoint of your REST API.
Go
3
star
31

wotchy

Watch & Listen YouTube videos on your terminal, but without Ads and other non-freedom things.
Go
3
star
32

template-go

The template repository for my next Go project.
Go
3
star
33

storeon-sessionstorage

Module for storeon to persist data from state to session storage
JavaScript
3
star
34

yatr

๐Ÿƒ Yet Another Task Runner (or yatr for a short) allows you to organize and automate your routine operations that you normally do in Makefile (or else) for each project.
Go
3
star
35

starlette-logo

๐Ÿ–ผ Official Starlette logo (with style guide).
2
star
36

koddr

My personal page on GitHub.
2
star
37

utilities-komentory

Useful Golang utilities for Authenticate and API servers for the Komentory project. Just for reference and nostalgia :)
Go
2
star
38

asynq-logo

๐Ÿ–ผ Official Asynq & Asynqmon logos (with style guide).
2
star
39

app-komentory

Frontend SPA application on Vue 3.x (TypeScript) for the Komentory project. Just for reference and nostalgia :)
Vue
1
star
40

dotfiles

My environment dotfiles, configs & bash scripts.
Nix
1
star
41

auth-komentory

Authentication server on Golang (Fiber) for the Komentory project. Just for reference and nostalgia :)
Go
1
star
42

go-lb

๐Ÿšฆ The simplest load balancer ever written in Golang.
Go
1
star
43

api-komentory

API server on Golang (Fiber) for the Komentory project. Just for reference and nostalgia :)
Go
1
star
44

easily-csv-import

Easily CSV splitter with Pandas
Python
1
star
45

go-errorify

๐Ÿ’Ž The understandable zero-dependencies multilingual error wrapper for your Go (Golang) apps or CLI.
Go
1
star
46

actions-sapper-demo

๐Ÿ‘€ Demo for Sapper Action.
JavaScript
1
star