A simple web app to test Lightning Web Components (Open Source) and retrieve a list of greetings from Google Firestore.
Start simple by running yarn watch
(or npm run watch
, if you set up the project with npm
). This will start the project with a local development server.
The source files are located in the src
folder. All web components are within the src/modules
folder. The folder hierarchy also represents the naming structure of the web components.
Find more information on the main repo on GitHub.
- npx create-lwc-app lwc-test
- cd lwc-test
- npm install
- npm install --save firebase
- firebase init
Then take a look at what I've added to src
:
src/firebase.js
models/greeting.js
modules/my/greeting/greeting.js
From the firebase console, add some greeting records to your database: