@platform/cell.service

HTTP micro-service for the operating system.

Usage no npm install needed!

<script type="module">
  import platformCellService from 'https://cdn.skypack.dev/@platform/cell.service';
</script>

README

Module License: MIT NPM banner

HTTP server for CellOS.

 

Setup

yarn add @platform/cell.service

 

Local Development

Example web servers in the form of an http micro-service and zeit/now (lambdas) exist within the /src.server/ folder.
From the project root use scripts:

yarn start   # Start the local HTTP server.
yarn watch   # Start the local HTTP server in file-watcher mode.
yarn now     # Start the local simulation of `zeit/now`.

To run against a live mongo database, which is necessary for testing the zeit/now implementation, add a .env within the project root:

PLATFORM_MONGO="<connection-string>"

 

Command Line

Insert a script in your package.json to easily access the command-line-interface:

{
  "scripts": {
    "cell": "cell $@"
  }
}

Then run yarn cell to see available options, for instance:

yarn cell ls
yarn cell deploy