korostelevm / express-cyclic-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express Hello World

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

Installation

  • Fork this repo
  • Clone to your local
  • npm install

Running

  • npm start
  • Browser: http://localhost:3000/some/path?q=query+one&q=second+query&single=value
  • Commandline: curl -i -XGET "http://localhost:3000/cmd/line-curl"

Cyclic Runtime

  • The Cyclic runtime expects a file in the root of your project named app.js
  • The runtime will const app = require('./app')
  • The runtime expects the express app to be exported as: module.exports = app
  • Thats it

About

License:MIT License


Languages

Language:JavaScript 46.5%Language:CSS 38.9%Language:HTML 14.6%