overleaf/server-ce/README.md

108 lines
4.1 KiB
Markdown
Raw Normal View History

2014-02-12 06:24:13 -05:00
ShareLaTeX
==========
2014-02-21 05:18:33 -05:00
[ShareLaTeX](https://www.sharelatex.com) is now open source! ShareLaTeX is an online real-time collaborative LaTeX editor, and you can now run your own local version where you can host, edit, collaborate in real-time, and compile your LaTeX documents. Were still 100% focused on running the hosted version at http://www.sharelatex.com, but we want to be more flexible in how you can use ShareLaTeX, and give something back to our wonderful community.
**[Read more on our blog](https://www.sharelatex.com/blog/2014/02/21/sharelatex-is-now-open-source.html#.UwcnsEJ_ugc)**
2014-02-21 05:44:48 -05:00
or **[join in the discussion on Hacker News](https://news.ycombinator.com/item?id=7276263)**
2014-02-21 05:18:33 -05:00
Installation
------------
2014-02-08 14:40:56 -05:00
2014-02-13 08:07:03 -05:00
ShareLaTeX uses a service orientied architecture (SOA) where we have lots of small
APIs that talk to each other over HTTP and Redis pub-sub channels. This repository
pulls together all of the different services and allows you to set up and run
them quickly.
2014-02-08 14:40:56 -05:00
2014-02-21 08:32:37 -05:00
*Note: Please make sure you have your public key configured with github since
we use ssh to pull additional repositories from github when you run the install
script.*
2014-02-08 14:40:56 -05:00
First, check out a local copy of this repository:
$ git clone git@github.com:sharelatex/sharelatex.git
$ cd sharelatex
2014-02-13 08:07:03 -05:00
Next install all the node modules and ShareLaTeX services:
2014-02-08 14:40:56 -05:00
$ npm install
2014-02-12 06:24:13 -05:00
$ grunt install
2014-02-08 14:40:56 -05:00
When that has finished, run ShareLaTeX with
$ grunt run
ShareLaTeX should now be running at http://localhost:3000.
Dependencies
2014-02-12 06:24:13 -05:00
------------
2014-02-19 10:37:47 -05:00
ShareLaTeX should run on OS X and Linux. You need:
2014-02-08 14:40:56 -05:00
2014-02-19 10:37:47 -05:00
* [Node.js](http://nodejs.org/) 0.10 or greater
* The [grunt](http://gruntjs.com/) command line tools (Run `npm install -g grunt-cli` to install them)
* A local instance of [Redis](http://redis.io/) and [MongoDB](http://www.mongodb.org/) running on their standard ports.
2014-02-21 09:00:12 -05:00
* An up to date version of [TeXLive](https://www.tug.org/texlive/), with the `latexmk` program installed (should be included by default in TeXLive).
2014-02-08 14:40:56 -05:00
2014-02-13 08:07:03 -05:00
Config
------
ShareLaTeX should mostly run out of the box, although it uses Amazon S3 for storing binary
files like images. You will need to configure ShareLaTeX to use your own S3 access key
which can be done by editing the file at `config/settings.development.coffee`
A local settings file can be specified by setting the `SHARELATEX_CONFIG` environment variable
to point to your own settings file. E.g.
$ export SHARELATEX_CONFIG=/home/james/config/settings.development.coffee
2014-02-08 14:40:56 -05:00
Other repositories
2014-02-12 06:24:13 -05:00
------------------
2014-02-08 14:40:56 -05:00
ShareLaTeX consists of many separate services, each with their own Node.js process
2014-02-13 08:07:03 -05:00
and source code repository. These are all downloaded and set upwhen you run
`grunt install`
2014-02-08 14:40:56 -05:00
The different services are:
2014-02-18 11:28:24 -05:00
### [web](https://github.com/sharelatex/web-sharelatex)
2014-02-08 14:40:56 -05:00
2014-02-21 09:00:12 -05:00
The front facing web server that serves all the HTML pages, CSS and JavaScript
2014-02-08 14:40:56 -05:00
to the client. Also contains a lot of logic around creating and editing
projects, and account management.
2014-02-18 11:28:24 -05:00
### [document-updater](https://github.com/sharelatex/document-updater-sharelatex)
2014-02-08 14:40:56 -05:00
2014-02-18 11:28:24 -05:00
Processes updates that come in from the editor when users modify documents. Ensures that
2014-02-08 14:40:56 -05:00
the updates are applied in the right order, and that only one operation is modifying
the document at a time. Also caches the documents in redis for very fast but persistent
modifications.
2014-02-18 11:28:24 -05:00
### [CLSI](https://github.com/sharelatex/clsi-sharelatex)
2014-02-13 08:07:03 -05:00
The Common LaTeX Service Interface (CLSI) which provides an API for compiling LaTeX
documents.
2014-02-18 11:28:24 -05:00
### [filestore](https://github.com/sharelatex/filestore-sharelatex)
2014-02-21 09:00:12 -05:00
An API for performing CRUD (Create, Read, Update and Delete) operations on binary files
2014-02-18 11:28:24 -05:00
(like images) stored in ShareLaTeX.
2014-02-13 08:07:03 -05:00
Contributing
------------
Please see the [CONTRIBUTING](https://github.com/sharelatex/sharelatex/blob/master/CONTRIBUTING.md) file for information on contributing to the development of ShareLaTeX.
2014-02-08 14:40:56 -05:00
Authors
---
2014-02-18 11:28:24 -05:00
- [Henry Oswald](http://twitter.com/henryoswald)
- [James Allen](http://twitter.com/thejpallen)
2014-02-20 11:37:34 -05:00
License
----
The code in this repository is released under the GNU AFFERO GENERAL PUBLIC LICENSE, version 3. A copy can be found in the `LICENSE` file.
Copyright (c) ShareLaTeX, 2014.