Skip to content

2023年度こうよう祭受付システムのバックエンドAPI

Notifications You must be signed in to change notification settings

GoRuGoo/koyofes2023-reception-system-backend

Repository files navigation

koyofes2023-reception-system-backend

Overview

2023 年度こうよう祭の一般来場者受付システムのバックエンド API

Requirement

OS

  • Mac OS Ventura 13.0(動作確認済み)

Library

  • Go
    • Gin
  • Docker
  • docker-compose

Installation(local)

  1. Clone this repository
git clone https://github.com/GoRuGoo/koyofes2023-reception-system-backend.git
  1. Change directory
cd koyofes2023-reception-system-backend
  1. Create env file
touch mysql_and_datetime.env
PLANET_SCALE_USER_NAME=hogehoge
PLANET_SCALE_USER_PASSWORD=hogehoge
PLANET_SCALE_IP=hogehoge

DAY_1_DATETIME=2023-06-11T00:00:00Z
DAY_2_DATETIME=2023-06-11T00:00:00Z

#DEBUG時のみ
KOYOFES2023_MODE=DEBUG
  1. Build docker image
docker-compose up -d
  1. Create database

ボリュームマウントでは何故か docker-compose.yml ファイルで DB 構築出来なかった為仕方なく...

docker-compose exec -it mysql bash
mysql -u root -p
gorupass
CREATE DATABASE reception;

Usage(local)

  1. Build & start container
docker-compose up
docker-compose exec api go run main.go

Author

About

2023年度こうよう祭受付システムのバックエンドAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published