task-5-pbi-btpns--Ahmad-_Maulana_Indidharmanto-

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

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 5 Imported by: 0

README

API with Golang

task-5-pbi-btpns-[Ahmad_Maulana_Indidharmanto]

Table of Contents

About

Merancang API pada fitur upload, dan menghapus gambar menggunakan bahasa Go dan sebuah database.

Getting Started

Prerequisites

Dibutuhkan bahasa Go terinstall, dan sebuah database ex:Postgresql.

Installing

Repo ini membutuhkan packages Go lainnya seperti; Gin Gonic, Gorm, JWT Go, and Go Validator.

Di install dengan command go get pada terminal

go get -u github.com/gin-gonic/gin
go get -u gorm.io/gorm
go get -u github.com/dgrijalva/jwt-go
go get -u github.com/asaskevich/govalidator

Lalu inisialisasi modul Go pada project

go mod init github.com/<username>/<project-name>

Untuk mengetes endpoint, bisa menggunakan Postman atau curl.

Usage

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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