nyannss / gadgetify-go

A Go Echo simple crud REST api

Home Page:https://gadgetify-go.osc-fr1.scalingo.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Tech Stack

Gadgetify

Powered by Scalingo ⚡

Demo


Table of Contents

Overview

This project provides a RESTful API for managing products in an online gadget shop. It supports basic CRUD (Create, Read, Update, Delete) operations for products.

The REST API follows the principles of Representational State Transfer (REST), which enables easy integration with various clients, including web and mobile applications. It utilizes the HTTP protocol for communication, allowing clients to perform operations such as retrieving, creating, updating, and deleting resources.

Features

  • Authorization & Authentication
  • Upload Images
  • CRUD
  • Error Handling & Validation

Tech Stack

Getting Started

Prerequisites

Instalation & Environments

  1. Clone this repository to your local

    git clone https://github.com/nyannss/gadgetify-go.git
  2. Install dependencies

    cd gadgetify-go && go mod download
  3. Setup environments (you can see in .env.example)

    • Database server using MySQL

      APP_PORT = (port as you want)
      DB_HOST = (put your db host)
      DB_PORT = (put your port of db host)
      DB_USER = (put your db username)
      DB_PASS = (put your db password)
      DB_NAME = (put your db  name)
    • JSON Web Token Secret Key (prefer using random string) [see more information]

      JWT_SECRET_KEY = (put your secret key)
    • Image server using Cloudinary [you can create account in here]

      CLOUDINARY_NAME = (put your cloudinary name)
      CLOUDINARY_KEY = (put your cloudinary key)
      CLOUDINARY_SECRET = (put your cloudinary secret)
  4. Last, run the app

    go run main.go

Postman Documentation

You can see the documentation from Postman.

Table Structure

You can download table structure (ddl) from this link.

Contributors

License

This project using ISC License

Report

Any error report you can pull request or contact: nyannss@proton.me

About

A Go Echo simple crud REST api

https://gadgetify-go.osc-fr1.scalingo.io/

License:ISC License


Languages

Language:Go 100.0%