For this week’s homework, the team size is two. You can opt to work alone too.
Coming up next week, we will merge two teams of two into a bigger team of four to work on the next milestone of this app.
https://github.com/ucdd2016/fiber
The template code provides a functional prototype with a basic map interface and a cost table, show below:
Your team must implement a number of new features such that the app will behave like the screenshot below:
These features are:
To run the app in the development mode, run this command:
npm start
This starts a development server at http://localhost:3000
To build a production version of the app, run this command:
npm run-script build-app
After running this command, a packaged Javascript file app.js
is created
and saved in public/js
.
Study the contents in the webpack configuration files. Annotate each line with a comment to describe your best understanding of the purpose of that line.
webpack.config.js
(10 points)webpack.production.config.js
(10 points)The app consists of all the files in public/
. Your team needs to figure out a
way to host the app. You can use any static site hosting service, such as
Firebase or Github.io.
There are questions embedded in the template code. These questions are meant for you to study and understand the code thoroughly. You may be asked to answer these questions to demonstrate your understanding.