@marblejs/http
package. httpListener
is the basic starting point of every Marble application. It includes definitions of all global middlewares and API effects.createServer
, which is a wrapper around Node.js server creator with much more possibilities and goods inside. When created, it won't automatically start listening to given port and hostname until you call its awaited instance.typescript
compiler and ts-node
:package.json
file:index.ts
, http.listener.ts
, api.effects.ts
modules in your project and run your server: