Code Monkey home page Code Monkey logo

ciq-be-challenge's Introduction

Building an Interactive Spreadsheet System

Today, the vast majority of businesses implement their commission plan models in Microsoft Excel, Google Sheets, or some other spreadsheet software. In this challenge, you will implement a simplified spreadsheet system that can be used to implement an extremely simple financial model.

Requirements

  • Implement a web server with a RESTful API that models a spreadsheet supporting cells, values, and formulas.
  • For simplicity, the size of the spreadsheet can be assumed to be fixed to 10 rows and 10 columns.
    • Columns are named after capital letters, starting with "A".
    • Rows are numbered and increasing, starting from "1".
  • The state of the spreadsheet should be mutatable via API calls.
  • After a given API call to update a cell, update any affected cells with their newly computed values.
  • Cell updates should take as input either an integer or a simple formula that references other cells and only needs to support addition.
    • For example, -1 and 123 should be able to be stored in a cell.
    • =A1+B1 should be able to be stored in a cell, and the display value should be the result of evaluating the sum of the value in A1 and the value in B1.

Out-of-scope

  • Don't worry about handling multiple concurrent users viewing and editing the spreadsheet at the same time.

Background

The sample code distributed with this package is provided to you as a starting point if you'd like to use it.

Setup

  1. Set up your virtualenv: python3 -mvenv venv
  2. Source the activate script: source venv/bin/activate
  3. Install the dependencies in your virtualenv: pip install -r requirements.txt
  4. Run the server FLASK_DEBUG=1 FLASK_APP=server.py flask run

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.