An UNOFFICIAL website built using Vue.js for the MCO community. Feel free to update things, ask me to update things, pick apart the code or anything in between! All feedback is good feedback :)
- Node.js (8.9.4) - This can be installed using
$ nvm install
- Yarn (1.13.0) - This can be installed using
brew install yarn --without-node
# install dependencies
yarn install
# serve with hot reload (so cool) at localhost:8080
yarn dev
- Checkout a branch prefixed with either
feature/your-branch
,fix/your-brach
, orhotfix/your-branch
(depending on what type of PR it is) - Make your awesome changes
- Make sure your changes are rebased on top of master (
git pull origin master
,git rebase master
) - Test it out by running
yarn dev
again, just to make sure :) - Run a visual BackstopJS test by running
yarn vtest
(you must runyarn dev
andyarn vtest-init
before visual testing). Check that your changes look correct. - Submit your pull request!
Once it's merged into master, I'll:
- Pull it in
- Run
yarn build
on it to build our website into the/dist
folder - Push it live!
NOTE: Check out server.js
to see the simple way we're using express.js to host it live on Heroku from the /dist
folder
- All pages will be found in
src/components/pages
- They will have a
.pug
file for the template and a.vue
file for the .js and .scss.
- They will have a
- The main calculations for the 'supply and demand' page are in
src/components/data/cards
- The daily data is in
src/components/data/daily
- FUD responses can be found and edited in
src/components/data/fud-responses
One thing to note about how Vue.js works (my framework of choice) is that .scss
styles will be found inside of the .vue
component that they relate to. So, for example, if we want to create a new component for a nice big blue button you'd find the styles for that in the big-blue-button.vue
file inside of a <style>
tag.
If it's a global style that will be used on all (or multiple) pages you'll find it in /src/assets/styles/_common
.
Lastly, we store the variables (currently only colors) in the /src/assets/styles/shared/variables
file that's auto-included in all files, so common colors and such should go there!
Ooooh where to begin.
- Live updating of the reservation counter
- Make it possible to link to each FUD Response
- Finish allowing a specific set of annual reservations (vs continuous growth)
- Move some of the repeated code into helpers, i hate that
- Code Cleanup / Bug fixes / whatever else we come up with
- Tests, obviously
@sashamorozov - Doing some awesome work with styling and UI testing!
Monaco Slack: @mfogg (Request access at contact@mona.co)
Twitter: @mcolife
Github: @mikefogg
Medium: @mikefogg
Email: mcolife@mikefogg.co