https://github.com/systemengineeringteam/ait-guide-back
https://github.com/systemengineeringteam/ait-guide-back
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/systemengineeringteam/ait-guide-back
- Owner: SystemEngineeringTeam
- Created: 2024-02-10T09:36:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T13:01:54.000Z (about 1 year ago)
- Last Synced: 2025-02-13T13:46:22.276Z (about 1 year ago)
- Language: Go
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ait-guide-back






[AITガイド](https://ait-guide.sysken.net)のバックエンドリポジトリ
## 環境
| 言語・フレームワーク | バージョン |
| --------------------- | ---------- |
| Go | 1.21.6 |
| gin-gonic/gin | 1.9.1 |
| neo4j-go-driver/v5 | 5.18.0 |
| paulmach/orb | 0.11.1 |
| spf13/viper | 1.18.2 |
| MySQL | 8.0 |
| Neo4j | 5.17.0 |
| Docker | 25.0.3 |
## makeコマンド
| Make | 実行する処理 |
| ------------------- | ------------------------ |
| make | ヘルプの表示 |
| make build | dockerコンテナビルド |
| make up | dockerコンテナ起動 |
| make build-up | dockerコンテナビルド&起動 |
| make down | dockerコンテナ停止 |
| make restart | コンテナ再起動 |
| make db | DBコンテナに入る |
| make go | goコンテナに入る |
| make help | ヘルプ |
## 環境変数
シス研のesaを参照
(project/2023年度/AITガイド)
## 実行方法
### 1.環境構築
Dockerをインストールする
#### macOS向け
[Docker Desktop の Mac へのインストール](https://matsuand.github.io/docs.docker.jp.onthefly/desktop/mac/install/)\
or\
`brew install --cask docker`
#### Ubuntu向け
[Docker Engine インストール(Ubuntu 向け)](https://matsuand.github.io/docs.docker.jp.onthefly/engine/install/ubuntu/)
### 2.環境変数のファイルを格納する
プロジェクトのルートディレクトリと`./src/conf/environments`にそれぞれファイルを設定
環境変数のファイルについてはesaを確認すること
### 3.実行
makefileがあるのでそれを使う
#### ビルド&実行
``` bash
make build-up
```