`( π§πΏββοΈ βΈ¬ π§π½ββοΈ
June 25, 2022 Β· View on GitHub
This is heavily outdated
I mostly now use the NextJS starter.
( π§πΏββοΈ βΈ¬ π§π½ββοΈ | π§π» ) Single-Page-Application Starter
π Preparations
Any real adventurer prepares their trip. For this trip you need to equip your computer with the following supplies:
π₯ Developing
We recommend using Storybook during development but you can also locally start the application.
π Using Storybook
A very nice workflow for building frontends is to use Storybook. You write stories for your components and immediately see them in action. This frees you from having to click through your UI to finally find your component. It also frees you from having to simulate error states; you just write a story for that.
To run storybook run:
npx yarn storybook
ππ½ββοΈ Running the whole application
To see the project in your browser run:
npx yarn start
π§ͺ Testing
To run the tests issue this command
npx yarn test
π Building
If you would like to create an HTML and a JavaScript file on your computer, this is how:
πPreparations
You need to equip your computer with Zephyr. If you have trouble with this, please open an issue on this Github Repository and we will help you!
π¦ Bundling
To create a bundle that is essentially an index.html and an index.js file run the following command:
npx yarn bundle
π Running
To run the bundle open the file ./dist/index.html in your favourite browser.