Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Simirall committed Aug 23, 2024
1 parent 0a64060 commit 9940454
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# madamis

## 身内向けマダミスシナリオ管理アプリ

- マダミスシナリオの情報を管理します
- 試合情報を追加することで、追加プレイ可能かどうかも確認できます

### ScreenShots

- 一覧画面

![index](./docs/assets/index.png)

- ダークモード対応

![index_dark](./docs/assets/index_dark.png)

- シナリオ追加画面

![add_madamis](./docs/assets/add_madamis.png)

- 試合追加画面

![add_game](./docs/assets/add_game.png)

- 同じシナリオで2回目を遊ぶ場合は、1回目の試合のPLは選択肢から除外されます

![add_game_2](./docs/assets/add_game_2.png)

- 未プレイ(試合情報なし)、遊ぶ人数でのフィルタリングができます

![filter](./docs/assets/filter.png)

### Resource

[Developing](./docs/Develop.md)
54 changes: 54 additions & 0 deletions docs/Develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# madamis

## How To Develop

### 0 Prepare Node

Prepare Node Environment

e.g. https://nodejs.org/ https://volta.sh/

Linux(Ubuntu) installation using volta

```sh
curl https://get.volta.sh | bash

volta install node

volta install corepack

corepack enable
```

### 1 Install Dependencies

```sh
pnpm i
```

- If asked to download pnpm, do so.

### 2 Prepare DB

To prepare the database, run the migrations

```sh
pnpm migrate
```

There is no data in the Users table, so add it
(Data can be freely entered)

```sh
pnpx wrangler d1 execute madamis-db --local --command "INSERT INTO Users (name, color) VALUES ('User1', '#1b7a16'), ('User2', '#bd8317');"
```

### 3 Run App

To run the App, run this command

```sh
pnpm dev
```

Then, you can access the App in your browser
Binary file added docs/assets/add_game.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/add_game_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/add_madamis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/index_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9940454

Please sign in to comment.