Git Product home page Git Product logo

dev-challenge-12-round-1's Introduction

12 - Dev Challenge

My solution from DevChallenge 12 Front End Round 1

Installation

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 optimization http://localhost:4200/

Build

Run npm run build to build the project.

Output files in dist directory

The Size of the builded project ~ 983 KB

Project Architecture

  • src - contain all source code of application
    • app - contain components and modules which using in application
      • chart - ChartComponent build a canvas component
      • lib - contain non angular files which do some extra function
        • timeInterval.ts - calculate a time interval between to time
        • info-graph.ts - class which draw info-graph. Contain all necessary functions for drawing
      • material - Material Module which using in application
      • models - contain classes and constants
      • schedule-form - ScheduleFormComponent for build form with questions to user about regular and optimized schedule
      • services - contain all services with should be using in application
        • schedule.service.ts - save data from ScheduleFormComponent for later user
      • app.component.ts - main component of application
      • app.mdoule.ts - main module of application
    • index.html - main html file where application loaded
    • style.scss - global style
    • doc - contain images for documentation

How to use application

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

Regular Schedule 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

Regular Schedule Graph

And form will change to offer your to answer some questions about your Preferable Schedule (Optimized)

Optimized Schedule Graph

After Press Submit Button you will able to see your Optimized Schedule Info Graph below the regular graph.

Regular and Optimized Graph

Graph Legend

  • #9E9E9E Sleep
  • #CDDC39 Commute
  • #E91E63 Work Activity
  • #00BCD4 Lunch
  • #F1F8E9 Home Activity
  • #BBDEFB Free Time or not Described

dev-challenge-12-round-1's People

Contributors

artem-galas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.