/storial

API Clone Storial.co

Primary LanguageGo

storial

Storial.co API clone using Go. With minimal third party library, without using Gorm and Gin. This project shows you how to build idiomatic API in Go only with their built-in packages. Not all API endpoint are implemented in this project.

Library/frameworks used:

API Documentation with Postman: https://documenter.getpostman.com/view/10904143/VUxPv7MD

This project is not recommended to be use in production, because lack of security, code best practices. This project intended for learning and purposes only.

This project use Repository and Service pattern. And currently only support MySQL as the database.

Project installation:

Setup your database environment in .env file based on your credentials. Copy and rename .env.example file to .env.

Clone:

$ git clone https://github.com/mrizkimaulidan/storial.git
$ cd storial

Download required dependencies:

$ go mod download

Build:

$ go build -o cmd/main cmd/main.go

Run the compiled file:

$ cmd/main