Hentai Library Thingy
Go to file
Xymorot 3f51ccca64 add no-shadow rule to eslint 2019-06-23 19:02:08 +02:00
src refactor entity folder structure 2019-06-23 17:30:51 +02:00
.editorconfig install tslint and prettier with stuff around to make them work together 2019-06-04 22:54:56 +02:00
.eslintignore uninstall electron-forge, switch to manual webpack for frontend/tsc for backend, install eslint 2019-06-16 00:41:43 +02:00
.eslintrc.json add no-shadow rule to eslint 2019-06-23 19:02:08 +02:00
.gitignore install sqlite3 and typeorm together with electron-rebuild, create first entities 2019-06-23 02:30:24 +02:00
.prettierrc.yml add svelte formatting to prettier (using vue parser) 2019-06-18 00:34:54 +02:00
README.md update README.md to reflect older changes in postinstall script 2019-06-23 18:16:09 +02:00
index.html set CSP headers (inline and in session) 2019-06-18 00:34:21 +02:00
ormconfig.yml refactor entity folder structure 2019-06-23 17:30:51 +02:00
package-lock.json install sqlite3 and typeorm together with electron-rebuild, create first entities 2019-06-23 02:30:24 +02:00
package.json add database migrations 2019-06-23 03:33:48 +02:00
tsconfig.json install sqlite3 and typeorm together with electron-rebuild, create first entities 2019-06-23 02:30:24 +02:00
tslint.json install sqlite3 and typeorm together with electron-rebuild, create first entities 2019-06-23 02:30:24 +02:00
webpack.config.js implement divide svelte component 2019-06-18 00:36:51 +02:00

README.md

Development

  • 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 dev

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.

Donations

BCH bitcoincash:qrm4v447q22nw8lyxmpam2eakd22vmsfagfxttznyc