faliqadlan / test-2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple api

Tech Stack

Go.Dev reference Go.Dev reference Go.Dev reference

OPEN API

POSTMANT

HLA
Movie
Feature Patient Endpoint Query Param Request Body JWT Token Utility
POST /movie - _ NO add movie
DELETE /movie - - NO delete current movie
PUT /movie - - NO update current movie
GET /movie tittle, description, artist, genres, movie_uid, limit, page - NO get current product

(back to top)

How to Use

1. Download

git clone https://github.com/faliqadlan/test-2.git

2. move to the directory

cd challenge-2

3.1 create file .env

touch .env

3.2 open .env

nano .env

3.3 write .env

PORT=8080
DB=mysql
DB_Name=<database name>
DB_PORT=3306
DB_HOST=localhot
DB_USERNAME=<username>/root
DB_PASSWORD=<password>
DB_LOC=Local
S3_REGION=<reqion AWS S3>/ap-southeast-1
S3_ID=<KEY ID AWS S3>
S3_SECRET=<SECRETKEY AWS S3>

4. Run

go run main.go

Contact

Gmail Github LinkedIn

(back to top)

About


Languages

Language:Go 100.0%