Giter VIP home page Giter VIP logo

itech-recruitment-task's Introduction

Calculator app

This is a tiny little calculator written in Vanilla JS and PHP.

calculator app

✈️ Live demo

πŸ“Š Calculations page

Features:

  • Performing calculations
  • Saving results as CSV on the server
  • Displaying results from CSV as HTML table

Project setup:

  • Clone this repository and install dependencies with npm i
  • Run npm run dev to start local dev server
  • Run npm run build to compile ready-to-deploy bundle to dist folder
  • Run npm run server to run local PHP server on dist folder

Folder structure:

  • src - all source files
  • src/scss - scss styles
  • src/scss/style.scss - SCSS entry point
  • src/js - all JavaScript files
  • src/js/main.js - JS entry point
  • src/views - template for html-webpack-plugin
  • php - all PHP files
  • dist - compiled production bundle
  • webpack - whole webpack config

Additional notes:

  • However it was not mentioned in the original design, additional navigation and header was added for better usability
  • It would be nice if large results would scroll, however overflow: scroll was adding nasty scrollbars on windows
  • As this page is collecting user's IP address, some kind of disclaimer should be implemented
  • Also, user should have a possibility to remove his personal data from the server
  • Results table is not filtered by newest to oldest for now
  • A Service Worker and offline functionality could be a nice addition to the calculator page
  • Current implementation of a toast message seems a bit intrusive. There is no way to close it, or to interact with it. I was thinking about using toastr, but using whole package just for one little toast message is probably an overkill

itech-recruitment-task's People

Contributors

jakubem avatar

Watchers

James Cloos 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.