2.3.0 • Published 4 months ago

@fastly/expressly v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

expressly

Express-style router for Fastly Compute.

Using expressly

Check out the docs.


First, head over to developer.fastly.com to get started with JavaScript on Fastly Compute:

  1. Learn about Fastly Compute: developer.fastly.com/learning/compute/
  2. Create your first JavaScript app: developer.fastly.com/learning/compute/javascript/

Install expressly

Install expressly from the npm registry:

npm i @fastly/expressly
yarn add @fastly/expressly

Your first expressly app

Replace the contents of your Compute app's src/index.js with the following:

import { Router } from "@fastly/expressly";

const router = new Router();

router.get("/", async (req, res) => {
  return res.send("Hello world!");
});

router.listen();

Try it out

Start your app locally:

fastly compute serve

This will start your service on http://localhost:7676.

Examples

Check out the JavaScript code examples for Compute on Fastly's Developer Hub.

2.3.0

4 months ago

2.2.1

7 months ago

2.2.0

7 months ago

2.0.2-0

7 months ago

2.0.1

9 months ago

2.0.0

9 months ago

2.1.0

7 months ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.1

2 years ago

1.0.0-alpha.9

2 years ago

1.0.0-alpha.8

2 years ago

1.0.0-alpha.7

2 years ago

1.0.0-alpha.6

2 years ago

1.0.0-alpha.5

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

1.0.1-0

2 years ago