Hentai Library Thingy
Go to file
Xymorot 420cd4756d doc: add 'remove' commit type and refactor existing types 2019-11-20 23:21:16 +01:00
resources feat: add icon/logo 2019-07-26 22:18:56 +02:00
src refactor: remove webpack aliases 2019-11-20 23:15:22 +01:00
.editorconfig install tslint and prettier with stuff around to make them work together 2019-06-04 22:54:56 +02:00
.eslintignore feat: implement nhentai login and refactor large pieces of code in the process 2019-07-26 23:05:29 +02:00
.eslintrc.json feat: implement nhentai login and refactor large pieces of code in the process 2019-07-26 23:05:29 +02:00
.gitignore feat: install electron-forge and define build process 2019-07-26 22:28:22 +02:00
.prettierrc.yml adjust prettier config 2019-06-30 02:00:26 +02:00
README.md doc: add 'remove' commit type and refactor existing types 2019-11-20 23:21:16 +01:00
forge.config.js feat: install electron-forge and define build process 2019-07-26 22:28:22 +02:00
gulpfile.js add source maps back to typescript transpilation via gulp-sourcemaps 2019-06-24 00:01:50 +02:00
index.html refactor: remove unnecessary CSP header source 2019-07-26 22:20:57 +02:00
ormconfig.yml refactor entity folder structure 2019-06-23 17:30:51 +02:00
package-lock.json update: run npm update (svelte, svelte-loader) 2019-07-30 23:00:15 +02:00
package.json feat: use uuid to get the correct ipc response only in the promise call that the request came from 2019-07-30 23:58:58 +02:00
tsconfig.json add source maps back to typescript transpilation via gulp-sourcemaps 2019-06-24 00:01:50 +02:00
tslint.json feat: implement nhentai login and refactor large pieces of code in the process 2019-07-26 23:05:29 +02:00
webpack.config.js refactor: remove webpack aliases 2019-11-20 23:15:22 +01:00

README.md

Renai

レンアイ - Hentai Library Thingy

Development

Quickstart

  • npm install, the postinstall runs
    • npm run rebuild
      • might need to install some build tools depending on your platform
    • npm run typeorm:migrate for installing the database
  • npm run tsc for backend
  • npm run webpack for frontend
  • npm run dev

Git Commits

This project uses Conventional Commits with the following types:

  • feat: features, if any part of your commit implements a new functionality or changes an existing one, use this
  • remove: removal of existing code/functionality
  • fix: bugfixes
  • refactor: code refactoring
  • update: updating dependencies and associated code changes
  • config: changing configuration (linters, build process)
  • doc: documentation
  • reformat: fixing code formatting

Always try to split up your changes into coherent commits, a single commit should do a single thing. If your commit needs to do more than one thing it should be labeled with the type coming first in this list.

Database Migrations

Migrations are stored in src/main/migrations and handled by typeorm.

To auto-generate a migration:
node_modules/.bin/typeorm migration:generate -n <migration name> -c <connection name>

To create an empty creation which can be filled with custom migration code:
node_modules/.bin/typeorm migration:create -n <migration name> -c <connection name>

To run migrations:
node_modules/.bin/typeorm migration:run -c <connection name>
This is also pre-defined in the npm script typeorm:migrate.