**** FAVO
A UI library for quickly building pages and UI blocks.
Github
Getting Started
Make sure you have node 8 installed.
nvm use 8
git clone https://github.com/webedx-spark/favo
yarn
yarn start // keep it open
npm link // open a new tab
Open a new tab and run
nvm use 8
cd playground
yarn
yarn start // keep it open
npm link @coursera/favo // open a new tab
Visit http://localhost:3000/ to see demo blocks.
Try to change the block component inside the src folder and see live updates.
General working process
UI Dev flow
- Add a component in the related
src
directory - Export the component in
src/index.js
- Import the component in
playground/src/components/FavoComponentList.js
and add it to render (Good to always add to the top so you don't have to scroll to the bottom to see the change.) Visit http://localhost:3006/favo to see the component. - Once you've finished update the UI, run
yarn release
to publish a new version
Use Favo in web
- From web
cd static/bundles/xdp
yarn workspace xdp add @coursera/favo@0.0.?
and start importing Favo components.
Use in production
Ready to publish the components? Run yarn release
and start using the components in production.
Notes
- Rerun
yarn build
after adding new package dependencies to FAVO.
XDP TODOs
Misc.
Tejas
- more work depending on Tejas's availability
Quang
Components list: (UI blocks, reusable components, design Q&A, web migration, api data mappinging, and ensure web compatibility)
Kelvin
Components list: (UI blocks, design Q&A, web migration, api data mappinging and ensure web compatibility)
May need further design tweaks (including the latest mobile design from Chelsea):
- InstructorList
- PartnerList
- IndustryPartners
- LearnerStories
- EarnCreditMDP
- CoursesMDP
- ProjectListMDP
- AboutMasterTrack
- StartLearningMDP
- BannerMDP
Audrey
Future work (beyond this sprint)