This is a silly little demo app for an offline-first course.
You could run the app either using machine dependnecies, or using docker
This is my personal fork of wittr that has solutions my second time around the course. I attempted to apply what we've learned of ES6 and for the most part did not rely on Jake's answers.
I've saved my solutions to quizzes in branches. Their format is
lesson-#-#-#-quiz-title
Where the first number is the lesson (3 or 4), the second number is the chapter or section, and the last number is the attempt or variant. I tried to leave sufficient comments, but sometimes they're more complementary to my own notes than serve as learning material on their own.
Dependencies:
- Node.js v0.12.7 or above
Then check out the project and run:
npm install
npm run serve
You should now have the app server at localhost:8888 and the config server at localhost:8889.
You can also configure the ports:
npm run serve -- --server-port=8000 --config-server-port=8001
docker-compose up
Here also you should have the app server at localhost:8888 and the config server at localhost:8889.
You can configure the ports by changing them in docker-compose.yml
before starting:
ports:
# <host>:<container>
- 8000:8888
- 8001:8889
- Errors while executing
npm run serve
.- The first thing to try is to upgrade to latest version of node.
- If latest version also produces errors, try installing v4.5.0.
- An easy fix for that would be to use
nvm
.
- An easy fix for that would be to use
- If you get any node-sass errors, try running
npm rebuild node-sass --force
or the removenode_modules
folder and runnpm install
again