@forgeframework/node-core
v0.4.0
Published
The primary server library of the Forge Framework.
Downloads
831
Maintainers
Readme
@forgeframework/node-core
The primary server library of the Forge Framework.
Part of the Forge Framework — a TypeScript framework for backend microservices and web applications.
Installation
npm install @forgeframework/node-coreUsage
import { ForgeServer } from '@forgeframework/node-core';
const server = new ForgeServer({ port: 3000 });
server.use(new RequestLogger());
server.use(new BodyParser());
server.route('GET', '/health', (ctx) => {
ctx.response.json({ status: 'ok' });
});
server.group('/api/v1', (router) => {
router.get('/users', listUsers);
router.post('/users', createUser);
router.get('/users/:id', getUser);
});
await server.start();Documentation
Full API reference and guides: https://carbonforge.io/framework/docs/core/node-core
(Documentation site launching soon.)
License
MIT © Carbon Forge
