Serverlessui

screenshot of Serverlessui

A command-line utility for deploying serverless applications to AWS. Complete with custom domains, deploy previews, TypeScript support, and more.

Overview

The Serverless UI is a tool that allows users to deploy their own user interface, regardless of the framework or library they're using. It supports static file compilations and automatically converts functions into endpoints. With Serverless UI, users can continuously integrate and test their application through deploy previews, configure custom domains, and write serverless functions in either JavaScript or TypeScript. It offers the benefits and security of a hosted AWS application without relying on third-party services.

Features

  • Bring your own UI: Supports React, Vue, Svelte, or JQuery as long as they compile down to static files.
  • Serverless Functions: Converts functions into endpoints, deploying them as Node.js lambdas behind a CDN and API Gateway for optimal performance and scalability.
  • Deploy Previews: Automatically deploys each iteration of the application with a separate URL for continuous integration and testing.
  • Custom Domains: Quickly configure a custom domain to take advantage of production deploys.
  • TypeScript Support: Write serverless functions in either JavaScript or TypeScript.
  • Own your code: Skip third-party services and enjoy the benefits and security of a hosted AWS application without intermediaries. Easily deploy to a new or existing AWS account in just five minutes.

CLI Reference

deployOptions

  • --dir: Specify the directory of your website's static files. Default: "dist"
  • --functions: Specify the directory of the functions to deploy as endpoints. Default: "functions"
  • --prod: Custom Domains only. Specify false to deploy a preview. Default: false

Examples:

  • Deploy a preview of a static website from a build directory with no functions:
serverless-ui deploy --dir build
  • Deploy a preview of a static website with serverless functions:
serverless-ui deploy --dir build --functions functions
  • Production deploy with a custom domain:
serverless-ui deploy --prod

configure-domainOptions

  • --domain: Your custom domain. Leave it empty for now.

Examples:

  • Deploy a Hosted Zone and Certificate to us-east-1 (required region for Cloudfront):
serverless-ui configure-domain --domain example.com

Summary

Overall, the Serverless UI offers a convenient way for users to deploy their own user interfaces with support for various frameworks and libraries. It simplifies the process of deploying static websites, converting functions into endpoints, and configuring custom domains. With its TypeScript support and ability to skip third-party services, users can easily deploy their applications with the benefits and security of a hosted AWS application.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.