⚡️ Fast node server
npm install @stract/core⚡️ Fast node server
``bash`
npm install @stract/core
or
`bash`
yarn add @stract/core
`js
import { Stract } from '@stract/core';
const app = new Stract();
app.get('/', async () => ({ foo: 'bar' }));
async function start() {
try {
await app.ready();
const { url } = await app.listen(9001);
console.log(Server ready on http://${url});
} catch (error) {
console.error(error);
}
}
start();
``