0.20201228.1 • Published 4 years ago

ethercalc v0.20201228.1

Weekly downloads
588
License
-
Repository
github
Last release
4 years ago

EtherCalc

Installation

For global installation (may need root)

npm i -g ethercalc
ethercalc

For local non-root installation

git clone git@github.com:audreyt/ethercalc.git
cd ethercalc
npm i
make

Nodejs older than 6.0

downgrade Nodemailer to v2.7.2

Or install with our Docker image, which comes with support for webworker-threads:

# Install docker and docker-compose
sudo ./misc/linux-install-docker-and-compose.sh

# Run ethercalc on port 80 ( http://localhost/ )
docker-compose up -d

Config database

set env vars:
  REDIS_PORT REDIS_HOST REDIS_SOCKPATH REDIS_PASS REDIS_DB OPENSHIFT_DATA_DIR

Defaults:
  REDIS_HOST = localhost   
  REDIS_PORT = 6379   
  OPENSHIFT_DATA_DIR= process.cwd!

OPENSHIFT_DATA_DIR is used if redis is not Running.

Code is here:
https://github.com/audreyt/ethercalc/blob/df758d4c2f5cbcb00b50e9289a8ba237d4f8fa86/src/db.ls#L5

Send email

Optional - Send email formulas requires OAuth2 & cron  e.g. =email(to, subject, body), =emailAt(time, to, subject, body)

OAuth2 - Set environment vars
1) Tutorial: follow the tutorial to get the 4 environment vars http://masashi-k.blogspot.com.au/2013/06/sending-mail-with-gmail-using-xoauth2.html
2) Set 4 environment vars - see [src/emailer.ls] vars: user, clientId, clientSecret, refreshToken
Tested using gmail, have not tested with other providors

Cron - Required for emailAt formulas.
See *curl* in [.openshift/cron/minutely/timetrigger] for openshift version (openshift](openshift.redhat.com)
The curl checks the database for unsent emails and updates the database after sending.

REST API

Please see API.md for the API Blueprint, or the online version at Apiary.

Runtime Flags

Listening Interface: --host / --port

Specify a specific host and/or a different port for the service.

By default EtherCalc listens at 0.0.0.0:8000 (all IPv4 interfaces).

Using SSL: --keyfile / --certfile

openssl genrsa -out ethercalc-key.pem 1024
openssl req -new -key ethercalc-key.pem -out certrequest.csr
openssl x509 -req -in certrequest.csr -signkey ethercalc-key.pem -out ethercalc-cert.pem
ethercalc --keyfile ethercalc-key.pem --certfile ethercalc-cert.pem

Prefers polling over Websocket: --polling

Useful when running behind a proxy without WebSocket support.

Enable Cross-Origin Resource Sharing: --cors

Useful when setting up EtherCalc as a public REST API server.

URL Prefix: --basepath /path/prefix

Useful when running under an URL rewriter. If running with a nginx reverse proxy, please add this section:

    location /zappa/socket/__local/ {
        rewrite (.*) /path/prefix$1;
    }

Access Control: --key secret

Offers read-write vs. read-only modes. See issues #1 and #4 for details on setting this up.

Disable server-side WebWorkers: --vm

Runs a single-thread background loop with vm.createContext instead of webworker-threads.

Useful for running custom functions in server side that requires full VM access.

Expires inactive spreadsheets: --expire 86400

Deletes a spreadsheet's content after N seconds of inactivity. Activities include accessing with REST API as well as Web UI, including moving the active cell cursor on an opened page.

Licensing

Common Public Attribution License (Socialtext Inc.)

  • socialcalcspreadsheetcontrol.js
  • socialcalctableeditor.js

Artistic License 2.0 (Socialtext Inc.)

  • formatnumber2.js
  • formula1.js
  • socialcalc-3.js
  • socialcalcconstants.js
  • socialcalcpopup.js

Artistic License 2.0 (Framasoft)

  • l10n/fr.json

MIT License (John Resig, The Dojo Foundation)

  • static/jquery.js

MIT License (HubSpot, Inc.)

  • static/vex-theme-flat-attack.css
  • static/vex.combined.min.js
  • static/vex.css

MIT License (Stuart Knightley, David Duponchel, Franz Buchinger, Ant'onio Afonso)

  • static/jszip.js

Apache License 2.0 (SheetJS)

  • static/shim.js
  • static/xlsx.js
  • static/xlsxworker.js
  • start.html (xlsx2socialcalc.js)

CC0 Public Domain (唐鳳)

  • src/*.ls

Mozilla Public License Version 2.0 (LibreOffice contributors)

  • images/sc_*.png
0.20201228.0

4 years ago

0.20201228.1

4 years ago

0.20200505.0

5 years ago

0.20200306.0

5 years ago

0.20200127.0

5 years ago

0.20191008.0

5 years ago

0.20190703.0

5 years ago

0.20190418.0

6 years ago

0.20180825.1

6 years ago

0.20180825.0

6 years ago

0.20180702.0

6 years ago

0.20180611.0

7 years ago

0.20180607.3

7 years ago

0.20180607.2

7 years ago

0.20180607.1

7 years ago

0.20180607.0

7 years ago

0.20170704.0

7 years ago

0.20170303.0

8 years ago

0.20161220.1

8 years ago

0.20161029.0

8 years ago

0.20160612.0

9 years ago

0.20160501.1

9 years ago

0.20160314.0

9 years ago

0.20160307.0

9 years ago

0.20160210.0

9 years ago

0.20151108.1

9 years ago

0.20151108.0

9 years ago

0.20151028.0

9 years ago

0.20150603.1

10 years ago

0.20150603.0

10 years ago

0.20150528.0

10 years ago

0.20150521.1

10 years ago

0.20150521.0

10 years ago

0.20150504.0

10 years ago

0.20150421.1

10 years ago

0.20150421.0

10 years ago

0.20150420.1

10 years ago

0.20150420.0

10 years ago

0.20150405.0

10 years ago

0.20150217.0

10 years ago

0.20150130.5

10 years ago

0.20150120.0

10 years ago

0.20150103.3

10 years ago

0.20150103.2

10 years ago

0.20150103.1

10 years ago

0.20150103.0

10 years ago

0.20150102.0

10 years ago

0.20141227.1

10 years ago

0.20141227.0

10 years ago

0.20141225.0

10 years ago

0.20141209.1

10 years ago

0.20141209.0

10 years ago

0.20141208.0

10 years ago

0.20141121.0

10 years ago

0.20141019.0

10 years ago

0.20141012.0

10 years ago

0.20140930.1

10 years ago

0.20140930.0

10 years ago

0.20140902.0

10 years ago

0.20140806.3

10 years ago

0.20140806.2

10 years ago

0.20140806.0

10 years ago

0.20140804.1

10 years ago

0.20140804.0

10 years ago

0.20140801.3

10 years ago

0.20140801.2

10 years ago

0.20140801.1

10 years ago

0.20140801.0

10 years ago

0.20140730.0

10 years ago

0.20140624.0

11 years ago

0.20140619.0

11 years ago

0.20140614.0

11 years ago

0.20140611.0

11 years ago

0.20140601.0

11 years ago

0.20140530.0

11 years ago

0.20140529.0

11 years ago

0.20140416.0

11 years ago

0.20140415.0

11 years ago

0.20140317.0

11 years ago

0.20140125.0

11 years ago

0.20131223.0

11 years ago

0.20131005.0

11 years ago

0.20130925.0

11 years ago

0.20130826.0

11 years ago

0.20130727.0

11 years ago

0.20130724.1

11 years ago

0.20130724.0

11 years ago

0.20130622.1

12 years ago

0.20130410.1

12 years ago

0.20130410.0

12 years ago

0.20130331.0

12 years ago

0.20130325.0

12 years ago

0.20130213.0

12 years ago

0.20130206.0

12 years ago

0.20130116.0

12 years ago

0.20121230.0

12 years ago

0.20121213.0

12 years ago

0.20121111.0

12 years ago

0.20121102.2948

12 years ago

0.20121026.162049

12 years ago

0.20121026.150429

12 years ago

0.20120930.93528

12 years ago

0.20120929.173941

12 years ago

0.20120830.52819

12 years ago

0.20120715.171049

12 years ago

0.20120703.72042

12 years ago

0.20120703.63819

12 years ago

0.20120701.233740

12 years ago

0.20120630.163712

12 years ago

0.20120522.151601

13 years ago

0.20120417.41007

13 years ago

0.20120414.172926

13 years ago

0.20120414.172059

13 years ago

0.20120408.192847

13 years ago

0.20120408.3317

13 years ago

0.20120408.2233

13 years ago

0.20120407.201258

13 years ago

0.20120407.34556

13 years ago

0.20120407.15853

13 years ago

0.20120407.15549

13 years ago

0.20120407.14958

13 years ago

0.20120406.201434

13 years ago

0.0.20120406

13 years ago