Giter Club home page Giter Club logo

netlify-lambda-tailwind-static-starter's Introduction

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

netlify-lambda-tailwind-static-starter's People

Contributors

dependabot[bot] avatar hugodf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.