Sem descrição

James Allen 6bb5bcb198 Neaten settings há 12 anos atrás
cache 432f45ac59 Configure CLSI to use sqllite há 12 anos atrás
chef f5f46af5a5 Add in TeXLive and imagemagick há 12 anos atrás
config 6bb5bcb198 Neaten settings há 12 anos atrás
user_files be1bb918e4 Create user_files by default há 12 anos atrás
.gitignore 5933dd60f5 Create Vagrant + Chef config for setting up ShareLaTeX há 12 anos atrás
.nvmrc fbb33bda0f Add .nvmrc há 12 anos atrás
CONTRIBUTING.md c3ff6c7770 Update CONTRIBUTING.md há 12 anos atrás
Gruntfile.coffee f73b8e3937 Add in docstore há 12 anos atrás
LICENSE ad6ed1cbff Create LICENSE há 12 anos atrás
README.md dcec6837b4 Require redis 2.6.12 or greater há 12 anos atrás
Vagrantfile 6e698b0c05 Run at the apt cookbook to keep apt up to date há 12 anos atrás
package.json 217e5f74ca Add dummy version to package.json to fix install. há 12 anos atrás

README.md

ShareLaTeX

ShareLaTeX 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. We’re 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

Installation

Please help us make ShareLaTeX as easy to install as possible by answering our quick survey about your system and needs

We're still figuring out the easiest way to let you install ShareLaTeX and get up and running quickly. If you fill in the above survey in we will be eternally grateful and it will help us make this install process as smooth as possible. For now, here is the best ways:

Manually

First, check out a local copy of this repository:

git clone https://github.com/sharelatex/sharelatex.git
cd sharelatex

Next install all the node modules and ShareLaTeX services:

npm install
grunt install

This will create a config file in config/settings.development.coffee. You should open this now and configure your AWS S3 credentials, and other custom settings.

Now check that your system is set up correctly to run ShareLaTeX (checks that you have the required dependencies installed.) Watch out for any failures.

grunt check --force

When that has finished, run ShareLaTeX with

grunt run

ShareLaTeX should now be running at http://localhost:3000.

With Vagrant

There is a Vagrant and Ansible backed VM installation script for ShareLaTeX, maintained by @palkan, available here: https://github.com/palkan/sharelatex-vagrant-ansible

With Docker

An automatic docker-based installer is available. It depends on docker and will build a production environment for running ShareLaTeX on any supported platform.

Dependencies

ShareLaTeX should run on OS X and Linux. You need:

  • Node.js 0.10 or greater. We recommend that you use nvm to install it.
  • The grunt command line tools (Run npm install -g grunt-cli to install them)
  • A local instance of Redis (version 2.6.12 or later) and MongoDB running on their standard ports.
  • TeXLive 2013 or later with the latexmk program installed.

Config

ShareLaTeX should run out of the box, but if you want to adjust any settings you can do so by editing the config/settings.development.coffee file. Available options are explained inline.

Other repositories

ShareLaTeX consists of many separate services, each with their own Node.js process and source code repository. These are all downloaded and set upwhen you run grunt install

The different services are:

web Build Status

The front facing web server that serves all the HTML pages, CSS and JavaScript to the client. Also contains a lot of logic around creating and editing projects, and account management.

document-updater Build Status

Processes updates that come in from the editor when users modify documents. Ensures that 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.

CLSI Build Status

The Common LaTeX Service Interface (CLSI) which provides an API for compiling LaTeX documents.

filestore Build Status

An API for performing CRUD (Create, Read, Update and Delete) operations on binary files (like images) stored in ShareLaTeX.

track-changes Build Status

An API for compressing and storing the updates applied to a document, and then rendering a diff of the changes between any two time points. Still in development and not hooked into the UI yet.

Contributing

Please see the CONTRIBUTING file for information on contributing to the development of ShareLaTeX. See our wiki for information on setting up a development environment and how to recompile and run ShareLaTeX after modifications.

Authors

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.