Website + REST (JSON) API for Kamihime Database
Character statistics are provided by Kamihime Project Wikia (Nutaku)
- VS Code Extensions
- Live Sass Compiler For watching saved Sass files and applying vendor prefixes on compilation.
- nginx (skip to nginx section)
- Node 10 or 11
- MariaDB 10
- Discord App + Bot Account
- Github Personal Access Token
- Build Tools (Windows) | Build Tools (Linux)
- I do not guarantee 100% coverage of the project within this documentation. If there is really something needed to be added, see Contributing.
- App Config: Please configure
auth.ts. Get its template fromauth.example.ts- It can be found at
src/authfolder.
- It can be found at
- MariaDB: Import database schema to your created database (default:
kamihimedb) withutf8_unicode_cicollation.- The
db.zipfile will not be updated for every new character release. It only serves as a starting kit for running the website.
- The
- Util/Scenario: If you found non-existent files that causes error on any story/scenario, please report here.
- Once the reported files are added, you may do
$ yarn run scenarios-vagain. See Procedures-3 for more info.
- Once the reported files are added, you may do
- Package Manager: Yarn is recommended.
- Read Requirements and Notice.
- Run
$ yarn- You have to build the src too:
$ yarn --production=false
- You have to build the src too:
- Run
$ yarn run scenariosto generate episode resources.- Or
$ yarn run scenarios-vto run with verbose logging. - Append
-l#or--latest=#to generate episode resources based on the number provided (e.g: 5 is for 5 characters).#is for a number.- This is not compatible with
--id. - e.g:
-l5or--latest=5
- This is not compatible with
- Append
-i{{id}}or--id={{id}}to generate episode resources based on the character provided.{{id}}is for a character ID.- This is not compatible with
--latest. - e.g.:
-ik0001or--id=k0001
- This is not compatible with
- Append
--eidolon/--soul/--ssr+/--ssr/--sr/--r(rarity options are forkamihime) to generate episode resources strictly in the character type specified.- This is compatible with
--latestbut not with--id.
- This is compatible with
- Or
- Run
$ yarn run build - Run
$ node .$ yarn run pm2for PM2 preference / production stage.
- Looking for feedbacks, so feel free to file an issue or a pull request!
- For code-related:
- Fork this repository, clone to your machine, and follow the project's development configuration [e.g. TSLint]
$ yarn --production=falseto install.
- For
src/views-related, you may use the taskMove PUG Filesto easily copy the new changes fromsrctobuild.- This only works with VSCode. However for CLI you may run this:
$ yarn run finalize --pug
- This only works with VSCode. However for CLI you may run this:
- For Sass compilation, see VS Code Extensions-1
- Run
$ yarn run buildto verify if your build is passing.- Failing build will be rejected at default.
- Fork this repository, clone to your machine, and follow the project's development configuration [e.g. TSLint]
MIT