An open API service indexing awesome lists of open source software.

https://github.com/scompo/calculator

A calculator in js
https://github.com/scompo/calculator

Last synced: about 2 months ago
JSON representation

A calculator in js

Awesome Lists containing this project

README

          

# calculator

[![icon](https://scompo.github.io/calculator/icon.png)](https://scompo.github.io/calculator/)

Icon by [cicce][cicce]

A calculator in javascript and html.

## Status

[![coverage](https://codecov.io/gh/scompo/calculator/branch/main/graph/badge.svg)](https://codecov.io/gh/scompo/calculator)
[![tests](https://github.com/scompo/calculator/workflows/Node.js%20CI/badge.svg)](https://github.com/scompo/calculator/actions?query=workflow%3A%22Node.js+CI%22)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/346013dcc92a49009a77fd4f3482898c)](https://app.codacy.com/gh/scompo/calculator?utm_source=github.com&utm_medium=referral&utm_content=scompo/calculator&utm_campaign=Badge_Grade_Settings)

## Use it

It's hosted in github pages, click [here](https://scompo.github.io/calculator/) to use it.

## Run it locally

How to run this calculator locally.

### Get the latest code

Clone the repository.

git clone git@github.com:scompo/calculator.git

Change directory into the cloned project.

cd calculator/src

### Serve it

Start a local server to view the page.

#### With python 3:

python3 -m http.server 8080

Documentation: https://docs.python.org/3/library/http.server.html

### View it

Open up http://localhost:8080/ in a browser.

[cicce]: https://ciccehc.threadless.com/