Git Product home page Git Product logo

asf-hash-challenge's Introduction

Anticipation Simulation Form

This project was created to discover the values of anticipation in a payment using a form to input the required like sale value, installments and MDR percentage. This is a challenge created by Hash.

Decisions

I used Webpack with babel for polyfills and build/development process, PubSub with Proxy structure to control the state of page, feature folder for organization of the files, CSS in JS (JSS) for styles, functional programming for the coding with componentization and use Native functions as much as possible for performance.

My decisions to created the project like that was based on two main ideas:

  • To show how my knowledge of Javascript, patterns and guidelines it's updated.
  • And demonstrate that functional programming is powerful and a trend that you should consider in the next projects.

Run application

  • First of all make sure you have Node installed and that you're using version 12+ by running: node -v.
  • Before run the application you have to install dependencies: npm install.
  • Now you can run the application using: npm run serve or npm run serve:staging.
  • And then using this URL http://localhost:8080/ to access the application, but the script will open for you.
  • To shut the application down, enter the command ctrl + c.

Available Scripts

In the root project directory, you can run: Before run the scripts see the section Run application

npm run serve

Runs the app with mode development. The url http://localhost:8080/, but the script will open for you.

npm run serve:staging

Runs the app with mode staging (production files). The url http://localhost:8080/, but the script will open for you.

npm run build

Runs the build process and export for /dist folder in the root.

npm run test

Runs the tests.

npm run coverage

Runs the tests in the mode coverage.

Project Structure

src/                              source code
|- app/                           components and services of the source code
|  |- core/                       core logic of the application
|  |- pages/                      pages components and your child components
|  |- shared/                     shared components
|  |- theme/                      global styles of application
|  |- +- ...                      root app and jss config
|- environments/                  configurations by environment
|- assets/                        assets (images, fonts, sounds, videos...)
|- index.js                       start file of application for Webpack
|- index.html                     main html of the project
|- +- ...                         default files for favicon and indexation
webpack/                          webpack files for each env
.editorconfig                     editorconfig help to standarize the code
.eslintrc                         configuration file of eslint
.gitignore                        for prevent files from add in the commits
.htmlhintrc                       configuration file of htmlhint
hyperclick-resolver.js            configuration for js-hyperclick
webpack.config.js                 for choose the correct env for run
package.json                      package configuration

README of the Challenge

You can find here CHALLENGE.

asf-hash-challenge's People

Contributors

rafalcan avatar rafaelalcantarazup 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.