Skip to content

Implements the Expressjs Hello World example to provide a faster start deploying on the Cyclic platform

License

Notifications You must be signed in to change notification settings

curiosityz/express-hello-world

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyclic - Express Hello World

This is a basic starter Expressjs app with:

  • Static file hosting
  • Logging Middleware
  • Catch-all handler that echoes request info

Local Quick Start

  • Clone to your local
  • Install dependencies npm install
  • Run locally npm serve
  • Make requests
    • Browser: http://localhost:3000/some/path?q=query+one&q=second+query&single=value
    • Command line: curl -i -XGET "http://localhost:3000/cmd/line-curl"

Deploy in under 10 seconds

Deploy to Cyclic

  • Sets up instant continuous deployment on git push
  • Realtime backend logs and API request monitoring

Cyclic Runtime

  • Cyclic hosts your app on serverless infrastructure. That means there is no guarantee of memory or file system persistence between requests.
  • The runtime expects a nodejs entry point defined as:
    • package.json "main" field defines the entry point file (if missing uses index.js)
    • Entry point starts a server on process.env.PORT

Say Hi

Ask a question or give us a shout out:

About

Implements the Expressjs Hello World example to provide a faster start deploying on the Cyclic platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.7%
  • HTML 14.8%
  • CSS 6.5%