const Pytheas = require('pytheas');
const app = Pytheas();
app.listen(3000);
app.Router().routes([
{
path: "/",
method: "get",
handler: (context)=>{
context.response.send("Hello World!");
}
},
]);
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a package.json
first with
the npm init
command.
Installation is done using the
npm install
command:
$ npm install pytheas