Stract
Install
npm install @stract/core
or
yarn add @stract/core
Minimal setup
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();