Code Monkey home page Code Monkey logo

spreadsheet's Introduction

Quicksheets

A simple browser-based spreadsheet app: https://sheets.habbes.xyz

Quicksheets screencast

How it works

When a cell on the spreadsheet is updated, all the non-empty cells are parsed and evaluated and updated with their new values (or errors). It has plenty of room for optimization but should be good enough for a sparse 50x26 grid.

To enter a formula in a cell, prefix the formula expression with =, e.g. =SUM(A1:A10).

Code organisation

  • src
    • app: contains all the UI code, based on React and Redux
    • lib: contains the modules implementing the core spreadsheet engine
      • eval: modules responsible for parsing and evaluating formulae and expressions
      • functions: implementations of the functions available in the spreadsheet (e.g. SUM, PRODUCT, etc.)
      • grid: abstractions for working with 2-D grids
      • spreadsheet.js: implements the Spreadsheet class that encapsulate the entire spreadsheet engine

The formula syntax is specified in grammar.md.

All available built-in functions are listed in functions.md

Unit tests are located in tests folders in the various subfolders under the src directory. E2E tests are located in cypress/integration directory.

Available Scripts

In the project directory, you can run:

  • yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

  • yarn test

Runs unit tests in interactive mode. Tests are re-run when files are changed.

  • yarn test:e2e

Runs end-to-end tests (using Cypress)

  • yarn test:e2e-watch

Allows you to run end-to-end tests interactively and watch them on a GUI.

  • yarn test:all

Runs all the tests

  • yarn build

Builds the app for production to the build folder.

  • yarn deploy

Builds and deploys the app to Firebase hosting.

spreadsheet's People

Contributors

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