Skip to content

Commit

Permalink
initial up
Browse files Browse the repository at this point in the history
  • Loading branch information
KokiWakatsuki committed Aug 25, 2024
1 parent 95996c1 commit 9259f21
Show file tree
Hide file tree
Showing 809 changed files with 110,702 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#必須レビュワー
@harata-t
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 開発目的
<!-- なにを改善するための開発なのかを明確にする -->

# 考えられる開発内容
<!-- どのように開発すればよいか -->

# 考えられる開発時間
<!-- 大体どのくらいの時間をかければ終わるIssueか -->

# 備考
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!-- 全部埋める必要はありませんが,できるだけわかりやすく書いてください -->
# 対応Issue
<!-- 対応したIssue番号を記載 -->
resolve #0

# 概要
<!-- 開発内容の概要を記載 -->
-

# 実装詳細
<!-- 具体的な開発内容を記載 -->
-

# 画面スクリーンショット等
<!-- URLとともに貼る(なければ空欄でよい) -->


# テスト項目
<!-- テストしてほしい内容を記載 -->
<!-- ex) コンポーネントのデザインが崩れないか -->
<!-- ex) データが表示できてるか・反映されてるか -->
- [ ]
- [ ]
- [ ]

# 備考
<!-- 実装していて困った箇所・質問など -->
18 changes: 18 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint
on:
push:
paths:
- '**.vue'
- '**.js'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Node.js 16.12.0
uses: actions/setup-node@v1
with:
node-version: 16.12.0
- name: ESLint
run: npm run lint
125 changes: 125 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/view/vue-project/node_modules
/admin_view/nuxt-project/node_modules
/api/log
/admin_api/log
/api/tmp
/admin_api/tmp
.DS_Store
/view/vue-project/dist
/inside_view/vue-project/dist
*.env

# Log files
/view/npm-debug.log*
/inside_view/npm-debug.log*
/admin_view/npm-debug.log*
/view/yarn-debug.log*
/inside_view/yarn-debug.log*
/admin_view/yarn-debug.log*
/view/yarn-error.log*
/inside_view/yarn-error.log*
/admin_view/yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*

# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/api/.bundle

# Ignore all logfiles and tempfiles.
/api/log
/admin_api/log
/api/tmp
/admin_api/tmp
!/log/.keep
!/tmp/.keep

# Ignore uploaded files in development
/storage/*
!/storage/.keep

/node_modules
/api/yarn-error.log
/admin_api/yarn-error.log

/public/assets
/api/.byebug_history
/admin_api/.byebug_history

# Ignore master key for decrypting credentials and more.
/api/config/master.key

# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.description.lsi
.nuxt/

# SSL server certificate
/certs/

/user_front/.vite


# cloudflare
cloudflare/**/*.json
cloudflare/**/cert.pem
52 changes: 52 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
api=https://group-manager-api.nutfes.net

build:
docker compose build
docker compose run --rm user_front npm install
docker compose run --rm admin_view npm install
docker compose run --rm api rails db:create
docker compose run --rm api rails db:migrate
docker compose run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/develop

build mac:
PLATFORM=arm64-darwin docker compose build
docker compose run --rm user_front npm install
docker compose run --rm admin_view npm install
docker compose run --rm api rails db:create
docker compose run --rm api rails db:migrate
docker compose run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/develop

build db:
docker compose run --rm api rails db:create
docker compose run --rm api rails db:migrate
docker compose run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/develop

prod-build:
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml run --rm user_front npm install
docker-compose -f docker-compose.prod.yml run --rm admin_view npm install
docker-compose -f docker-compose.prod.yml run --rm user_front npm run build
docker-compose -f docker-compose.prod.yml run --rm admin_view npm run build
docker-compose -f docker-compose.prod.yml run --rm api rails db:migrate

prod-build-seed:
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml run --rm user_front npm install
docker-compose -f docker-compose.prod.yml run --rm admin_view npm install
docker-compose -f docker-compose.prod.yml run --rm user_front npm run build
docker-compose -f docker-compose.prod.yml run --rm admin_view npm build
docker-compose -f docker-compose.prod.yml run --rm api rails db:migrate
docker-compose -f docker-compose.prod.yml run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/production

prod-up:
docker-compose -f docker-compose.prod.yml up -d

prod-down:
docker-compose -f docker-compose.prod.yml down

prod-restart:
docker-compose -f docker-compose.prod.yml down
docker-compose -f docker-compose.prod.yml up -d

prod-logs:
docker-compose -f docker-compose.prod.yml logs
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# Group-Manager-3
# 参加団体管理アプリ ver 2.x
## ユーザー画面(参加団体向け)
[site](http://group-manager.nutfes.net/)

### Login
<img width="1680" alt="user_login" src="https://user-images.githubusercontent.com/90322124/179436796-b666a494-30f5-4352-b10a-2b1ff04a0b6c.png">

### Mypage
<img width="1680" alt="user_mypage" src="https://user-images.githubusercontent.com/90322124/179436320-deb2f525-eb77-4264-8f87-c6ee16b8c99f.png">

## 管理者画面(実行委員向け)
[site](http://group-manager-admin.nutfes.net/)
<img width="1680" alt="admin_page" src="https://user-images.githubusercontent.com/90322124/179436360-6125f5fb-29c1-4df4-9af4-de1993f0ff0b.png">

## 使用技術
![group-manager-jpeg 001](https://user-images.githubusercontent.com/33748835/117114823-45700b00-adc7-11eb-8bab-7442f38a7065.jpeg)

### api
ruby 2.7.1 <br>
rails 6.1.3.1<br>

### view(ユーザー画面)
SPA<br>
node v12.14.1<br>
@vue/cli 4.4.4<br>

### admin_view(管理者画面)
SSR<br>
node v12.18.4<br>
nuxt.js<br>

## セットアップ
[git cloneをしたら](https://github.com/NUTFes/group-manager-2/wiki/git-clone-%E3%82%92%E3%81%97%E3%81%9F%E3%82%89)
25 changes: 25 additions & 0 deletions admin.prod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Build用 コンテナ
FROM node:16.13.0 AS builder
WORKDIR /app/nuxt-project
COPY ./admin_view/nuxt-project /app/nuxt-project
RUN npm install
RUN npm run build

# 本番用 軽量 nodejs16
FROM gcr.io/distroless/nodejs16-debian11:nonroot
WORKDIR /app
LABEL org.opencontainers.image.source="https://github.com/NUTFes/group-manager-2"
ENV NODE_ENV production

COPY --from=builder /app/nuxt-project/nuxt.config.js ./nuxt.config.js
COPY --from=builder --chown=nonroot:nonroot /app/nuxt-project/.nuxt ./.nuxt
COPY --from=builder /app/nuxt-project/node_modules ./node_modules
COPY --from=builder /app/nuxt-project/package.json ./package.json
COPY --from=builder /app/nuxt-project/package-lock.json ./package-lock.json
COPY --from=builder /app/nuxt-project/store ./store
COPY --from=builder /app/nuxt-project/static ./static
COPY --from=builder /app/nuxt-project/assets ./assets

USER nonroot
EXPOSE 8000
CMD ["node_modules/.bin/nuxt", "start"]
16 changes: 16 additions & 0 deletions admin_view/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:16.13.1

WORKDIR /app/nuxt-project

#RUN npm install -g @vue/cli

#CMD ["/bin/sh"]

#COPY ./nuxt-project/package*.json /app/
#RUN npm install
#RUN npm install -g create-nuxt-app
#RUN npm install @nuxtjs/axios
#RUN npm install @nuxtjs/auth
#RUN npm install pdfmake

#RUN npm run build
13 changes: 13 additions & 0 deletions admin_view/nuxt-project/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
Loading

0 comments on commit 9259f21

Please sign in to comment.