Task Detail
-
Activity on Wed May 23 2018 13:32:29 GMT+0000 (UTC) 1. create needed folders for my framework structure: lib - handle model, plugins - controller, public - view, view. 2. Create Server.js file: 'use strict' const fastify=require('fastify')(); const app={}; /** Create start function in app object */ app.start=async function(){ /** simple test route */ fastify.get('/simpleRoute', async(req, reply)=>{ return{hello:'simple route'} }); /** end simple test route */ await fastify.listen(3000); return fastify; } /** end create start function in app object */ app.start(); run: node /lib/server.js to make sure this will run
10/26/2024 14:46:14