Create database in Mysql/Mariadb for internal_tools:
create database internal_tool;
Using Mysql as the database for saving configuration. There are two files for configuring db:
- ormconfig.json
- db/schema.prisma TODO: Currently it asks you to provide same config thrice. Will improve in a later version.
Install typeorm cli
npm install -g typeorm
npm install -g ts-node
Run typeorm migrations using following command. It will get your db upto date.
ts-node ./node_modules/typeorm/cli.js migration:run
npm install -g blitz
blitz start
blitz start --production
Open http://localhost:3000 with your browser to see the result.