getting started
Prerequisites
Install
npm install light{
// ...
"scripts": {
"start": "light start",
"dev": "light dev"
}
// ...
}Usage
Conclusion
Last updated
Was this helpful?
npm install light{
// ...
"scripts": {
"start": "light start",
"dev": "light dev"
}
// ...
}Last updated
Was this helpful?
Was this helpful?
const { createRoute } = require('light');
const { route } = createRoute('index');
module.exports = route(() => {
return {
hello: 'world',
};
});› start 🔥 igniting the server 🔥
› listening on port 3000
› hmr starting the hot reloader
› hmr watching for changes