-
Notifications
You must be signed in to change notification settings - Fork 15
Front end development
Álvaro Casado Coscollá edited this page Oct 7, 2018
·
10 revisions
We are currently developing our front-end views by building React components along with Storybook.
MAKE SURE YOU DOWNLOAD THE LATEST CHANGES FROM THE react
BRANCH FIRST
- All web UI components can be found at
app/javascript/bundles/UI/components
- All stories are found at
app/javascript/stories/ui
- All Jest tests lay on
app/javascript/spec
One of our main goals is to stick to Airbnb's JavaScript style guide to make our code cleaner and clearer.
https://github.com/airbnb/javascript
-
To install Node.js
brew install node
-
To install Yarn
brew install yarn
-
To install Storybook and other dependencies
npm install
yarn install
- Install and configuration here we change the path to
app/javascript/spec
. - Write your tests in
app/javascript/spec/
. Quick start tutorial here - You can test a file with
yarn test nameOfFile
for exampleyarn test Input.test.js
if the file is inapp/javascript/spec
. - Or run all test files with
yarn test
.
We are currently using CSS components for component styling. You can check out the following example to get started:
https://github.com/gajus/react-css-modules#css-modules
npm run storybook