-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Image for the social metadata - Remove unused CSS - Write documentation in the README - Adjust Riichi UI theme
- Loading branch information
1 parent
28bcc8e
commit d32b3b6
Showing
11 changed files
with
77 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,69 @@ | ||
# riichi-wait-trainer | ||
# Riichi Wait Trainer | ||
|
||
## Project setup | ||
``` | ||
yarn install | ||
``` | ||
A web application designed to help you train and identify waits of a tenpai hand in Riichi Mahjong (Japanese Mahjong). | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
yarn serve | ||
``` | ||
![Application](./public/og-image.png) | ||
|
||
## Links | ||
|
||
* [Live Application](https://tools.phil.moe/riichi/wait-trainer) | ||
|
||
## Development | ||
|
||
### Compiles and minifies for production | ||
This project utilizes Vue.js (3.x) with Vite and Yarn (1.x) for dependency management. | ||
|
||
### Getting Started | ||
|
||
After cloning the repository, install the necessary dependencies with: | ||
|
||
``` bash | ||
yarn | ||
``` | ||
|
||
### Building the Application | ||
|
||
To build the application, run: | ||
|
||
```bash | ||
yarn build | ||
``` | ||
|
||
### Run your unit tests | ||
``` | ||
yarn test:unit | ||
``` | ||
### Development Mode | ||
|
||
To start the application in development mode, use: | ||
|
||
### Lints and fixes files | ||
```bash | ||
yarn dev | ||
``` | ||
|
||
### Other Useful Commands | ||
|
||
* Run the linter on the code: | ||
|
||
```bash | ||
yarn lint | ||
``` | ||
|
||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/) | ||
### Project Structure | ||
|
||
* `/.github/workflows`: Contains .yml configurations for GitHub Actions. | ||
* `/deploy`: Kubernetes .yml configurations for deployment. | ||
* `/dist`: Output folder for builds. | ||
* `/nginx`: NGINX configuration files. | ||
* `/public`: Static assets to be copied during the build process. | ||
* `/src`: Main application code. | ||
|
||
## Github Actions | ||
|
||
### Continuous Integration | ||
|
||
Triggered by commits or pull requests on the master branch. This action verifies that the project builds correctly and adheres to linter specifications. | ||
|
||
### Publish | ||
|
||
Triggered by the creation of a release. This action builds the application inside a Docker image, pushes it to the image repository, and updates the Kubernetes cluster for automatic deployment of the new release. | ||
|
||
## Credits | ||
|
||
* Mahjong related components are from [@emeraldcoder/riichi-ui-vue](https://www.npmjs.com/package/@emeraldcoder/riichi-ui-vue) | ||
* Tile images are sourced from [FluffyStuff/riichi-mahjong-tiles](https://github.com/FluffyStuff/riichi-mahjong-tiles) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:root { | ||
--riichi-tile-border-color: var(--dark-green); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.