Custom Server 2

Alex (@alex)

27761

0

0

About This Space

This workspace deploys a custom server


Last updated on March 20, 2020

Public Permissions:   View   Open/Fork   Run   Comment  

Custom Server Template

This template uses a custom Node.js server rather than the built-in Express server used by NodeRun.

When configuring a custom server, find the main server file, select Properties, and mark the checkboxes labeled App Start File and Custom Server.

custom-server

To be accessible via NodeRun, your custom application server must listen on port 8081, which you can access dynamically by using process.env.PORT.

With custom servers, when you make changes to your server-side code, you must restart the application server. You can do this from the Server menu in the IDE.

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By Alex (@alex)

Filters:

Popular Recent

A simple Demo of how to deploy EJS templates from a stateful Node.js script

29432

0

0

Collects information from an online form into a database

29361

0

0

29287

0

1

This is a simple demo of Fibers! Fibers simplifies code by avoiding messy code known as "callback hell", "promises hell", or "async/await hell". Once Fibers is setup, you never have to think about callbacks or promises (they are handled automatically for you).

29198

0

0

My First Space

29188

0

0

A Hello World app with both dynamic output and input fields. It also illustrates the basics of screen transition animation.

29114

0

0

A Hello World app with both dynamic output and input fields. It also illustrates the basics of screen transition animation.

29105

0

0

A Hello World app with both dynamic output and input fields

29013

0

0

A Hello World app with both dynamic output and input fields. It also illustrates the basics of screen transition animation.

28943

0

0

A Hello World app with both dynamic output and input fields

28908

0

0

28773

0

0