Initial code
This commit is contained in:
parent
f4a1afe71b
commit
c6d3e066c9
21 changed files with 2446 additions and 0 deletions
15
src/index.ts
Normal file
15
src/index.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { config } from "./config.js";
|
||||
|
||||
import Fastify from "fastify";
|
||||
import { testRoutes } from "./controllers/test/routes.js";
|
||||
|
||||
const app = Fastify({
|
||||
logger: true,
|
||||
});
|
||||
|
||||
app.register(testRoutes);
|
||||
|
||||
app.listen({ port: config.port }, (err, address) => {
|
||||
if (err) throw err;
|
||||
console.log(`Server is now listening on ${address}`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue