actions reactored. multi-tick action support
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "server",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "tsx watch src/index.ts",
|
||||
"build": "tsc -b",
|
||||
"start": "node dist/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"fastify": "^5.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsx": "^4.19.4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import Fastify from 'fastify';
|
||||
|
||||
const fastify = Fastify({ logger: true });
|
||||
|
||||
fastify.get('/', async (_request, _reply) => {
|
||||
return { status: 'ok' };
|
||||
});
|
||||
|
||||
await fastify.listen({ port: 3000, host: '0.0.0.0' });
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2023",
|
||||
"module": "nodenext",
|
||||
"moduleResolution": "nodenext",
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user