Welcome to the BSA Troop 485 Website! This website runs on React and Gatsby. We alo use storybook for developing components and component documentation.
It is recommended (but not required) that you configure SSL for localhost (see below). Then:
- Install node and yarn, if not already installed. How you do this is up to you, but
nvm
is recommended. - Install dependencies:
$ yarn
- Start the dev server:
$ yarn start
If you haven't configured ssl yet, run$ yarn start:nossl
instead. instead.
By default, $ yarn start
will only start a gatsby dev server. However, a storybook server is also avaliable.
To start this, run $ yarn storybook
, and to start both gatsby and storybook, run $ yarn develop
By default, gatsby runs on port 8000 and storybook on port 6006.
To create a minimized production build, simple run gatsby build. Every file
in src/pages
will become a page, and the generated storybook build will also be avaliable at
/development/storybook