These instructions on based on the more complicated installation instructions for Coauthor.
Here is how to get a local test server running:
- Install Meteor:
curl https://install.meteor.com/ | shon UNIX,choco install meteoron Windows (in administrator command prompt after installing Chocolatey) - Download Cocreate:
git clone https://github.com/edemaine/cocreate.git - Run meteor:
cd cocreatemeteor npm installmeteor
Even a test server will be accessible from the rest of the Internet, on port 3000.
To deploy to a public server, we recommend deploying from a development machine via meteor-up. Installation instructions:
- Install Meteor and download Cocreate as above.
- Install
mupvianpm install -g mup(after installing Node and thus NPM). - Edit
.deploy/mup.jsto point to your SSH key (for accessing the server), and your SSL certificate (for an https server). cd .deploymup setupto install all necessary software on the servermup deployeach time you want to deploy code to server (initially and after eachgit pull)
All of Cocreate's data is stored in the Mongo database (which is part of Meteor). You probably want to do regular (e.g. daily) dump backups.
mup's MongoDB stores data in /var/lib/mongodb. MongoDB prefers an XFS
filesystem, so you might want to
create an XFS filesystem
and mount or link it there.
(For example, I have mounted an XFS volume at /data and linked via
ln -s /data/mongodb /var/lib/mongodb).
mup also, by default, makes the MongoDB accessible to any user on the
deployed machine. This is a security hole: make sure that there aren't any
user accounts on the deployed machine.
But it is also useful for manual database inspection and/or manipulation.
Install MongoDB client
tools,
run mongo cocreate (or mongo then use cocreate) and you can directly
query or update the collections. (Start with show collections, then
e.g. db.messages.find().)
On a test server, you can run meteor mongo to get the same interface.
To install bcrypt on Windows (to avoid warnings about it missing), install
windows-build-tools
via npm install --global --production windows-build-tools, and
then run meteor npm install bcrypt.