Created a spreadsheet using javascript. Integrated several features such as
- Add row
- Delete row
- Add column
- Delete column
- Perform various arithmetic operations such as Addition, Subtraction, Multiplication, Division and Modulus on selected multiple rows or columns and display their output in the selected cell
- Updating the value of the cell will also update the output of the calculated arithmetic operation
- Export all the cell entries in a CSV
Clone the repository on your local machine using command
git clone https://github.com/neu-mis-info6150-spring-2018/extra-credit-assignment-1-techcrat.git
Go inside the folder and run the commands to install the dependencies
cd extra-credit-assignment-1-techcrat
npm install
Once, all the dependencies are installed, run the below mentioned commands in separate terminals to start the server and build webpack that allows the project to load css and js files
npm start
npm run build
Then, open the browser and hit the url http://localhost:5000/
Click on the Add Row Button. New row will be added as the last row.
Click on the Add Column Button. New column will be added as the last column.
Double click on any cell of the row that you want to delete. Then click on Delete Row Button. The row will be deleted, and all the rows below that particular row will be updated with new row numbers.
Double click on any cell of the column that you want to delete. Then click on Delete Column Button. The column will be deleted, and all the columns after that particular column will be updated with new column names.
Randomly add numbers to any number of cells in the row and columns. Not necessary to fill in values in the all the cells. For example, you can put in values in few cells of one particular row and few cells of one particular column. For example, after you select a cell, you can perform an operation on either a row or a column. Now, select a cell where you want to display the output of any arithmetic operation. Type the formulas as shown below:
To Calculate for Rows (Type the command in bold in the cell you selected)
- ADDITION Operation: =sum(A3,E3) Here, (A3,E3) is the range and the values of all the cells that fall in this range will be calculated.
- SUBTRACTION Operation: =diff(A3,E3)
- MULTIPLICATION Operation: =mul(A3,E3)
- DIVISION Operation: =div(A3,E3)
- MODULUS Operation: =mod(A3,E3)
To Calculate for Columns (Type the command in bold in the cell you selected)
- ADDITION Operation: =sum(A3,A9) Here, (A3,A9) is the range and the values of all the cells that fall in this range will be calculated.
- SUBTRACTION Operation: =diff(A3,A9)
- MULTIPLICATION Operation: =mul(A3,A9)
- DIVISION Operation: =div(A3,A9)
- MODULUS Operation: =mod(A3,A9)
Click on the Export HTML Table To CSV File Button
- Import / Export
- Arrow Functions
- Let Keyword
- HTML5
- CSS3
- JavaScript
- Node.js
- ECMAScript 6
- Webpack
Application Deployed on: https://javascript-spreadsheet-app.firebaseapp.com/