sagemath / cloud

*MOVED TO* https://github.com/sagemathinc/cocalc
https://cocalc.com
Other
137 stars 32 forks source link

Developer setup #184

Open wilzbach opened 9 years ago

wilzbach commented 9 years ago

Hi,

I saw that you just recently released the code for this awesome project to the general public.

It would be super if you could provide some notes for developers who want to contribute to this project..

My experience

I started to play with SMC and I thought I share my experience.

Small gotchas

npm install assert async cassandra commander crypto message net node-cassandra-cql node-uuid start-stop-daemon temp walk winston express@3.x htmlparser marked underscore cassandra-driver moment mime formidable cookies http-proxy password-hash lowe/zxcvbn nodemailer primus engine.io browserify helenus --save

My experience

1) project_server

coffee project_server.coffee

seems to work after these tiny modifications

@@ -58,2 +58,2 @@ message        = require 'message'
-misc_node      = require 'misc_node'
-misc           = require 'misc'
+misc_node      = require './misc_node'
+misc           = require './misc'
@@ -1019 +1019,2 @@ program.usage('[start/stop/restart/status] [options]')
-if program._name == 'project_server.js'
+if program._name == 'project_server.js' or program._name ==
+'project_server.coffee'

2) Other services

williamstein commented 9 years ago

I haven't provided step-by-step instructions yet. I did just add a README.md:

https://github.com/sagemath/cloud/blob/master/README.md

Also, it's critical to look at build.py, which is a command line script that downloads and installs everything.

In theory, someday, setup will be the following:

 . salvus-env
 ./build.py --build_all
 ipython
 In [1]: import admin; reload(admin); s = admin.Services('conf/deploy_local2/')
 In [2]: s.start('all')