0.1.2 • Published 7 months ago
@gsa-tts/forms-server v0.1.2
@gsa-tts/forms-server
The Forms Platform web server.
Build
The build consists of Astro's node.js adapter's output, as well as a constructor for running the web server with user-provided configuration. The build target produces both:
pnpm build
Development
pnpm dev
Usage example
To start the provided Express server:
import { createServer } from '@gsa-tts/forms-server';
const port = process.env.PORT || 4321;
const app = createServer({
title: 'Example Form Service',
});
app.listen(port, () => {
console.log(`Server running on http://localhost:${port}`);
});
0.1.2
7 months ago