My solution from DevChallenge 12 Front End Round 1
Firs of all check your need to install latest version of Node
and NPM
.
npm install
- install all decencies;npm start
- run development server with production optimizationhttp://localhost:4200/
Run npm run build
to build the project.
Output files in dist
directory
The Size of the builded project ~ 983 KB
src
- contain all source code of applicationapp
- contain components and modules which using in applicationchart
-ChartComponent
build a canvas componentlib
- contain non angular files which do some extra functiontimeInterval.ts
- calculate a time interval between to timeinfo-graph.ts
- class which draw info-graph. Contain all necessary functions for drawing
material
- Material Module which using in applicationmodels
- contain classes and constantsschedule-form
- ScheduleFormComponent for build form with questions to user about regular and optimized scheduleservices
- contain all services with should be using in applicationschedule.service.ts
- save data from ScheduleFormComponent for later user
app.component.ts
- main component of applicationapp.mdoule.ts
- main module of application
index.html
- main html file where application loadedstyle.scss
- global styledoc
- contain images for documentation
After run a server you see next form. That form offer your to answer some questions about your Regular Schedule. On the screenshot bellow your can see example of filled form
After Press Submit Button you will able to see your Regular Schedule Info Graph.
You can save it as PNG by pressing on the Save As PNG
button
And form will change to offer your to answer some questions about your Preferable Schedule (Optimized)
After Press Submit Button you will able to see your Optimized Schedule Info Graph below the regular graph.