Git Product home page Git Product logo

echo-api-sandbox's Introduction

echo-api-sandbox

About

Go (Echo) でのサーバーサイド開発の素振り
Wi-Fi検索システムのバックエンドAPI

管理画面 - react-frontend-sandbox

Tech Stack

  • 言語 - Go
  • フレームワーク - Echo
  • データベース - MySQL
  • ORM - Gorm
  • API定義書 - OpenAPI ReDoc

Requirements

  • Go 1.18
  • Docker, docker-compose
  • direnv

Getting Started

  • アプリケーションの起動
# データベースの起動
docker compose up mysql -d

# 環境変数の設定
cp .envrc.sample .envrc
direnv allow

# ローカルサーバー配信
make run

http://localhost:1323

Utility Commands

  • データベースログイン
./mysql.sh
Enter password: password
mysql> use find_wifi_db;
  • API定義書生成(ReDocUI配信)
docker compose up redoc -d

http://localhost:1324

  • サービス停止(MySQL, ReDoc)
docker compose down

Database

データベース名 find_wifi_db

テーブル物理名 論理名
services Wi-Fiサービス
shops Wi-Fi提供店舗
reviews 店舗レビュー
areas エリアマスタ

Package Architecture

find-wifi-backend
├── data
│   ├── admin
│   │   ├── area.go
│   │   ├── review.go
│   │   ├── service.go
│   │   └── shop.go
│   ├── client
│   │   ├── area.go
│   │   ├── review.go
│   │   └── shop.go
│   └── common.go
├── handler
│   ├── admin
│   │   ├── area.go
│   │   ├── review.go
│   │   ├── service.go
│   │   └── shop.go
│   ├── client
│   │   ├── area.go
│   │   ├── review.go
│   │   └── shop.go
│   └── hello.go
├── main.go
├── model
│   ├── area.go
│   ├── review.go
│   ├── service.go
│   └── shop.go
└── server
    ├── database.go
    └── router.go

echo-api-sandbox's People

Contributors

kotatanaka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.