overleaf-cep/services/web
2025-07-22 14:19:16 +02:00
..
.storybook [web] Fix Editor Stories (#26535) 2025-06-25 08:05:20 +00:00
.vscode
app [web] reject upload requests without a file path (#27156) 2025-07-22 08:07:03 +00:00
bin Update unit test script to remove mocha module tests 2025-05-29 08:06:34 +00:00
config Enable autocomplete of reference keys feature 2025-07-22 14:19:16 +02:00
cypress Merge pull request #25151 from overleaf/dk-use-user-features 2025-05-13 08:07:57 +00:00
data
frontend [web] reject upload requests without a file path (#27156) 2025-07-22 08:07:03 +00:00
locales [third-party-datastore] improve error handling (#26881) 2025-07-22 08:07:13 +00:00
migrations Merge pull request #26794 from overleaf/em-subscription-index 2025-07-04 08:06:04 +00:00
modules [web] prepare filestore migration for Server Pro/CE (#27230) 2025-07-22 08:06:58 +00:00
public [web] Add compilation indicator favicon (#25990) 2025-06-24 08:05:15 +00:00
scripts [third-party-datastore] improve error handling (#26881) 2025-07-22 08:07:13 +00:00
test [web] reject upload requests without a file path (#27156) 2025-07-22 08:07:03 +00:00
transform Add shellcheck to web, server-pro, server-ce (#23823) 2025-02-26 09:05:02 +00:00
types Merge pull request #27254 from overleaf/td-project-dashboard-cookie-banner 2025-07-22 08:06:05 +00:00
webpack-plugins
.dockerignore
.eastrc Merge pull request #20732 from overleaf/revert-20731-revert-20480-ls-convert-migration-scripts-to-esm 2024-10-14 10:58:50 +00:00
.eslintignore
.eslintrc.js [web] Add window. prefix to globals and add no-restricted-globals rule (#26422) 2025-06-24 08:05:10 +00:00
.gitignore [misc] cleanup .dockerignore and .gitignore files (#25312) 2025-05-07 08:05:24 +00:00
.nvmrc Update node to 22.17.0 2025-07-09 08:06:01 +00:00
.prettierignore Prettier for PUG templates (#26170) 2025-06-24 08:05:06 +00:00
.prettierrc Prettier for PUG templates (#26170) 2025-06-24 08:05:06 +00:00
.stylelintrc.json Merge pull request #20860 from overleaf/td-bs5-history-versions-list 2024-10-14 11:11:01 +00:00
app.mjs [web] prepare filestore migration for Server Pro/CE (#27230) 2025-07-22 08:06:58 +00:00
babel.config.json Upgrade PDF.js to v5 (#24948) 2025-04-28 08:05:09 +00:00
cloudbuild-storybook-index.html.m4
cloudbuild-storybook.yaml Update node to 22.17.0 2025-07-09 08:06:01 +00:00
cypress.config.ts [web] disable recording of cypress videos in CI (#23530) 2025-02-12 09:05:25 +00:00
docker-compose.ci.yml Merge pull request #27255 from overleaf/revert-27252-revert-26843-csh-issue-26608-mongo8-dev-ci 2025-07-22 08:05:25 +00:00
docker-compose.common.env Update node to 22.17.0 2025-07-09 08:06:01 +00:00
docker-compose.cypress.yml Merge pull request #26652 from overleaf/bg-run-e2e-tests-under-wayland 2025-07-11 08:07:03 +00:00
docker-compose.yml Merge pull request #27255 from overleaf/revert-27252-revert-26843-csh-issue-26608-mongo8-dev-ci 2025-07-22 08:05:25 +00:00
Dockerfile Update node to 22.17.0 2025-07-09 08:06:01 +00:00
Dockerfile.frontend Update node to 22.17.0 2025-07-09 08:06:01 +00:00
Dockerfile.frontend.ci
i18next-scanner.config.js
LICENSE
local-dev.env
local-test.env
Makefile Prettier for PUG templates (#26170) 2025-06-24 08:05:06 +00:00
Makefile.module Merge pull request #21472 from overleaf/em-hackathon-mongo-mocks-docker 2025-01-08 09:05:34 +00:00
package.json [clsi-cache] meter ingress and egress bandwidth (#27143) 2025-07-16 08:05:59 +00:00
README.md
tsconfig.backend.json
tsconfig.json Upgrade TypeScript to 5.8.3 (#24900) 2025-07-03 08:05:57 +00:00
vitest.config.js Disable test isolation 2025-05-29 08:05:29 +00:00
webpack.config.dev.js [misc] compress in ssl_proxy instead of webpack-dev-server (#24263) 2025-03-13 09:05:52 +00:00
webpack.config.js [web] Add third-party tracking Propensity (#26638) 2025-06-30 08:05:52 +00:00
webpack.config.prod.js

overleaf/web

overleaf/web is the front-end web service of the open-source web-based collaborative LaTeX editor, Overleaf. It serves all the HTML pages, CSS and javascript to the client. overleaf/web also contains a lot of logic around creating and editing projects, and account management.

The rest of the Overleaf stack, along with information about contributing can be found in the overleaf/overleaf repository.

Running the app

The app runs natively using npm and Node on the local system:

$ npm install
$ npm run start

Running Tests

To run all tests run:

make test

To run both unit and acceptance tests for a module run:

make test_module MODULE=saas-authentication

Unit Tests

The test suites run in Docker.

Unit tests can be run in the test_unit container defined in docker-compose.tests.yml.

The makefile contains a short cut to run these:

make test_unit

During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:

make test_unit MOCHA_GREP='AuthorizationManager'

To run only the unit tests for a single module do:

make test_unit_module MODULE=saas-authentication

Module tests can also use a MOCHA_GREP argument:

make test_unit_module MODULE=saas-authentication MOCHA_GREP=SSO

Acceptance Tests

Acceptance tests are run against a live service, which runs in the acceptance_test container defined in docker-compose.tests.yml.

To run the tests out-of-the-box, the makefile defines:

make test_acceptance

However, during development it is often useful to leave the service running for rapid iteration on the acceptance tests. This can be done with:

make test_acceptance_app_start_service
make test_acceptance_app_run # Run as many times as needed during development
make test_acceptance_app_stop_service

make test_acceptance just runs these three commands in sequence and then runs make test_acceptance_modules which performs the tests for each module in the modules directory. (Note that there is not currently an equivalent to the -start / -run x n / -stop series for modules.)

During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:

make test_acceptance_run MOCHA_GREP='AuthorizationManager'

To run only the acceptance tests for a single module do:

make test_acceptance_module MODULE=saas-authentication

Module tests can also use a MOCHA_GREP argument:

make test_acceptance_module MODULE=saas-authentication MOCHA_GREP=SSO

Routes

Run bin/routes to print out all routes in the project.

License and Credits

This project is licensed under the AGPLv3 license

Stylesheets

Overleaf is based on Bootstrap, which is licensed under the MIT license. All modifications (*.less files in public/stylesheets) are also licensed under the MIT license.

Artwork

Silk icon set 1.3

We gratefully acknowledge Mark James for releasing his Silk icon set under the Creative Commons Attribution 2.5 license. Some of these icons are used within Overleaf inside the public/img/silk and public/brand/icons directories.

IconShock icons

We gratefully acknowledge IconShock for use of the icons in the public/img/iconshock directory found via findicons.com