Expressly is a lightweight and minimalist routing layer for JavaScript apps running on Fastly Compute. Get to know the Compute environment with a basic expressly starter that demonstrates routing and middleware. To learn more about expressly, check out our blog post and visit our documentation.
For more details about other starter kits for Fastly Compute, see the Fastly developer hub
This starter is intentionally lightweight, and only requires the @fastly/js-compute and @fastly/expressly npm packages.
The starter doesn't require the use of any backends. Once deployed, you will have a Fastly service running on Compute that can generate synthetic responses at the edge.
To create an application using this starter kit, create a new directory for your application and switch to it, and then type the following command:
npm create @fastly/compute@latest -- --language=javascript --starter-kit=expresslyTo build and run your new application in the local development environment, type the following command:
npm run startTo build and deploy your application to your Fastly account, type the following command. The first time you deploy the application, you will be prompted to create a new service in your account.
npm run deployPlease see our SECURITY.md for guidance on reporting security-related issues.