Serving static files at localhost:3000
(default) with Organiser.
@GET
async home () {
return Response.static(path.join(__dirname, '../static/index.html')).build()
}
Disclaimer: misbehavior while serving static files with Organiser v1.0.0. You have to use Response as below:
@GET
async home () {
return (await Response.static('../filepath.json')).build()
}
- install dependencies
$ npm install
- compile scripts
$ npm run build
- start server
$ npm start
- install dependencies
$ npm install
- start server (with hot reload)
$ npm run dev