Code Monkey home page Code Monkey logo

home-energy-calculator's Introduction

Home Energy Calculator

This repo acts as the front-end React app of the energy calculator.

Local Development

This service utilizes vite to build the static assets and host the local development server.

npm start

This Project relies on running the backend api at the same time locally in order to handle api request. See Mentioned repo for local development startup.

[TODO] Create api response mocks/stubs to simplify local development.

Linting and Formatting

ESLINT

Lints the codebase at src/

npm run lint or npm run lint:fix to apply changes if possible.

PRETTIER

Formats the code

npm run format

Testing

VITEST

Runs all unit tests under src/. The convention is to create a .test.js file in the same directory as the code under test (e.g. src/helpers/equations.test.js for src/helpers/equations.js).

To run all tests in "watch mode" where tests are re-run when a file is changed:

npm run test

Additional options can be passed to the Vitest command (docs), e.g.

# only run tests for a specific file or directory
npm run test -- src/helpers/equations.test.js

# disable watch mode
npm run test -- --run  

home-energy-calculator's People

Contributors

chlsbrcktt avatar codeexpert74 avatar cooper-roper avatar rgraue avatar sfishel18 avatar shilojones 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.