Example app using ejs
templates, Showing a simple view but also has guides in code comments
For same example using edge.js
templates, similar to laravel blade and faster - Xpresser Typescript Example App Using Edge.js
Xpresser Default Page using Bulma.io & Bootstrap
Theme can be changed in config.ts
- Clone Or Download
- Run
yarn
ornpm
install. - Run
npm run ts-dev
oryarn run ts-dev
- check config in config.ts
- Read Xpresser Documentation
{
"build": "xjs @stack tsc",
"ts-watch": "tsc --watch",
"ts-dev": "ts-node-dev --respawn app.ts",
"start": "npm run build && node build/app.js",
"start-dev": "nodemon build/app.js"
}
- build: Build Typescript files
- ts-watch: Compile typescript in realtime while watching or changes.
- ts-dev: Start app in typescript mode using
ts-node-dev
. - start: Builds file and runs built file.
- js-dev: Use
nodemon
to run built file. This is useful when using tsc watch.
Please, Star Project Thank you so much.