Skip to content

A collection of easy-to-digest code examples for Lightning Web Components on any platform.

License

Notifications You must be signed in to change notification settings

trailheadapps/lwc-recipes-oss

Lightning Web Components Recipes Open Source

Github Workflow codecov

A collection of easy-to-digest code examples for Lightning Web Components Open Source. Each recipe demonstrates how to code a specific task in 30 lines of code or less. A View Source link takes you right to the code in GitHub. From Hello World to data access and third-party libraries, there is a recipe for that!

Trailhead Badge

Learn more about this app by completing the Quick Start: Explore the Lightning Web Components OSS Recipes Sample App Trailhead project or by watching this short presentation video.

Recipes Live Version

Check out https://lwc-recipes-oss.herokuapp.com live on Heroku. Or on https://recipes.lwc.dev.

Deploy to Heroku

If you want to deploy LWC Recipes Open Source to Heroku, you can do the following:

  1. Create a Heroku application:
heroku create <app name>
  1. Deploy the application:
git push heroku main

Local Development

  1. Clone the lwc-recipes-oss repository:
git clone https://github.com/trailheadapps/lwc-recipes-oss
cd lwc-recipes-oss
  1. Install the project dependencies using npm (or yarn, if you prefer that alternatively)
npm install
  1. Build the LWR static site.
npm run build
  1. Start the app in watch mode.
npm run dev
  1. Enjoy the app!

Code Tours

Code Tours are guided walkthroughs that will help you understand the app code better. To be able to run them, install the CodeTour VSCode extension.

About

A collection of easy-to-digest code examples for Lightning Web Components on any platform.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks