Coder Social home page Coder Social logo

nuconta-calculator's Introduction

How to run

First, install the project's dependencies using yarn, then start the server using the dev command:

yarn
yarn dev

If you want to build and locally preview the production build you can use:

yarn build
yarn serve

You can also use the --host flag when running yarn dev or yarn serve to preview the project on a physical mobile device more easily.

Additionally, run the automated tests using:

yarn test

Recommendations

  • Install the workspace recommended extensions
  • Disable Vetur if you use it (it doesn't support the new <script setup> syntax)

Choices

  • I used Typescript because in my experience it has shown to reduce bugs and improve maintainability. I also have a better DX when using it.
  • I used Vue 3 because it provides the composition API (not present in Vue 2) and supports Typescript out of the box. I also have more experience with Vue than with React.
  • Unit tests are written with Jest and component tests use Vue Testing Library (@testing-library/vue). These libs are recommended by Vue's core team and are compatible with Vue 3.
  • I created a domain folder to house functions that handle business rules. So they aren't coupled to the Vue application, the application just consumes them through a composable utility.
  • Since the project was meant to be production ready, I also added a few small packages:
    • vue-i18n to deal with internationalization and number formatting.
    • vueuse to provide common composition utilities, it prevents reinventing the wheel.
    • big.js to simplify and prevent bugs when handling floating point number operations.
    • tailwindcss and postcss to handle styles, decreasing the amount of time needed to write css.
  • No component library, since the project was so small and the UI was very simple.

nuconta-calculator's People

Contributors

thalesagapito avatar

Watchers

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