This is a small project for recruiting front-end engineer in Hahow. Inc., please check Reference first.
Wei-Ming Chen [email protected]
Please install npm first.
- install required packages:
npm install
- build website:
npm start
Then open http://localhost:8080 with your browser.
- Front-end framework: Vue.js and vue-resource.js for sending requests.
- Routing: using Director.js to implement routing service.
- Style: using Bootstrap for layout and RWD.
- Build: using Gulp to build website.
- Javascript compiler: using Babel to compile js to a more compatible version.
heroList
& heroProfile
are two Vue instance, managing all necessary interaction with users.
-
heroList
deals with the following issues:- send request to load hero list(names and image links)
- invoke loading when user click a hero card
- bind
selected
class when a hero card is selected
-
heroProfile
deals with the following issues:- send request to load hero profile
- send request to update hero profile
- validate the correctness of ability points
-
Director.js will help us update url routing and listen routing changing.