belajar-go-graphql

command module
v0.0.0-...-d68acc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

README

Belajar Go GraphQL

Belajar GraphQL dengan bahasa pemrograman Go.

Daftar Isi

Fitur

Projek ini sudah siap dijalankan dan dapat dimodifikasi sesuai kebutuhan masing-masing. Adapun kemampuan projek ini:

  1. Dapat menjadi backend dari GraphQL.
  2. Dilengkapi Graphiql.
  3. Dapat menjadi service dalam rangkaian microservices.
  4. Support berbagai koneksi database, seperti MySQL, PostgreSQL, SQLite, dan SQL Server.
  5. Support migrasi database dalam bentuk file SQL.
  6. Support dependency injection.

Konsep Arsitektural

Struktur proyek ini mengikuti konsep-konsep arsitektural seperti:

  • DRY (Don't Repeat Yourself)
  • SOLID Principle
  • Clean Architecture

Stack Teknologi

Nama Kegunaan
Go Bahasa Pemrograman
Fiber HTTP Framework
PostgreSQL Database Management System
Gorm Object-Relational Mapper
Jwt Token untuk Otentikasi
GraphQL Go Engine GraphQL

Utilitas Pihak Ketiga

Nama Kegunaan
Validator Validasi data
Soda CLI Migrasi database
Swag Otomatis generate dokumentasi REST API (swagger)
GNU/Make Build tool

Menjalankan Projek

Persiapan

Agar projek dapat dijalankan, diperlukan beberapa hal untuk dipersiapkan, antara lain:

  1. Menjalankan migration dengan menyesuaikan akses database.
./.bin/soda m -c db/database.yml -p db/migrations

Mode Development

  1. Clone projek ke komputer lokal, dengan perintah:
git clone https://github.com/hadihammurabi/belajar-go-graphql
  1. Menjalankan projek dengan mode development (pengembangan) dengan perintah:
make dev

Mode Production

  1. Clone projek ke komputer lokal, dengan perintah:
git clone https://github.com/hadihammurabi/belajar-go-graphql
  1. Menjalankan projek siap guna dengan perintah:
make && ./main

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL