Full stack pre-configured project with:
- Sqlite DB backend
- App/server/routes architecture
- Websockets
- Debuggable with VSCode
- Testable with Jest
Need to install sqlite3
driver manually
npm install sqlite3 --build-from-source --sqlite=/usr/include
npm install
Sample .env
file:
SERVER_HOST=localhost
SERVER_PORT=3014
DB_PATH=db.sqlite
Other notes:
tmux-task
in debug switches to shell#3- requires
ts-node
installed globally
npm run tsnd
- Use
scratch.ts
to manually db/routes
npm run jest db
npm run jest routes
- Use
db.test.ts
to jest-test dbs - Use
routes.test.ts
to jest-test routes
npm run webpack watch
Compiles:
- pug files
- typescript code
- css files
- Debug with runner
- Debug with jest-test
- Debug running backend
- Debug running frontend