Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HugoDF/netlify-lambda-tailwind-static-starter

Repository files navigation

Netlify Lambda Tailwind Static Starter demo

A starter project with Netlify Lambda, Tailwind CSS and static pages.

Deploy to Netlify

There's a lambda generating random emoji πŸ‘ at ./src/lambda/emoji.js

The index page is just HTML with inline scripts.

A JavaScript function intercepts form submits and sends them using fetch instead. There's also a helper to get field values using their name, see getFieldValue(form, fieldName) on GitHub.

This is a good starting point for quick Lambda demos.

Development setup

You should run yarn before starting.

The following scripts are available:

  • yarn start: start the Lambda(s) and serving the static directory using Netlify Dev . Important: before start, yarn build:tw runs.
  • yarn build:tw: build the full set of Tailwind CSS utilities (useful for development), make sure to check what your site looks will look like live using yarn build:css
  • yarn build: run netlify-lambda build + Tailwind CSS production build (removes unused classes using PurgeCSS)
  • yarn build:css: Tailwind CSS production build (removes unused classes using PurgeCSS)
  • yarn lint and yarn format: runs XO, the "JavaScript linter with great defaults" (see github.com/xojs/xo) with or without the --fix flag respectively

About

A starter project with Netlify Lambda, Tailwind CSS and static pages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /