Coder Social home page Coder Social logo

shaxine / olgitbridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chazeon/olgitbridge

0.0 0.0 0.0 879 KB

Overleaf git bridge, fork of https://gitlab.com/axkibe/olgitbridge with support for the Overleaf v4 frontend

License: GNU Affero General Public License v3.0

Shell 0.11% JavaScript 97.11% Ruby 0.09% CSS 0.99% Makefile 0.13% Dockerfile 0.17% Pug 0.45% Stylus 0.95%

olgitbridge's Introduction

olgitbridge

Another Overleaf git bridge. This hack allows you to pull and push changes via git on an Overleaf Community Edition (CE) or Pro server, like shown in the official Overleaf SaaS announcement. Just use git clone http://your.server.invalid/<project-id>, where your project ID can be seen from your Overleaf instance.

This gitbridge uses the web API of Overleaf to down- and upsync changes. This means it does not need to run on the same server as Overleaf. In fact it is recommended to run it on another so it can directly use https port 443.

Note that contrary to the cloud version this bridge does not use realtime change operations, any files changed by git will result in a "this file has been changed externally" interruption in the online editor.

Getting started

Start installing (likely on another server than the Overleaf server)

git clone https://gitlab.com/axkibe/olgitbridge.git
cd olgitbridge
npm install

edit config.js in your favorite editor.

If the bridge is running on port 80 and or 443 using authbind may be a good idea.

Start the server with (or without authbind)

authbind node src/server.js

Wrap it in your auto(re)starter/service of your choice.

Docker container

There is a Dockerfile provided here, feel free to use it for your deployment. Make sure to edit the config before launching the service. It might make sense to mount the /var/olgitbridge/... folders, so the content persists a software update. I recommend configuring the basedir before building the container to /var/olgitbridge/data.

The container exposes port 5000 by default.

Dependencies

In development node.js v16.11.0 was used.

olgitbridge's People

Contributors

axkibe avatar chazeon avatar fnetx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.