screwdriver-wrenchSetup Develop Tools

These optional services are not required to run Overleaf, but they are highly recommended for development, debugging, and inspection during local development.

Please add the following to your docker-compose.yml :

chevron-rightdevelop/docker-compose.ymlhashtag
develop/docker-compose.yml
# services: 
  # Overleaf Dev Containers
  # ...
  
  # Add those for your development
  # API debug
  hoppscotch-frontend:
    image: hoppscotch/hoppscotch-frontend:latest
    ports:
      - "3000:3000"

  hoppscotch-proxy:
    image: hoppscotch/proxyscotch:latest
    environment:
      - PORT=9159
    ports:
      - "9159:9159"


  # Redis-insight
  redis-insight:
    image: redislabs/redisinsight:latest
    ports:
      - "5540:5540"
    depends_on:
      - redis
    volumes:
      - ./data/redis-insight:/data

  # mongo-express
  # basicAuth credentials are "admin:pass"
  mongo-express:
    image: mongo-express
    ports:
      - "8081:8081"
    environment:
      ME_CONFIG_MONGODB_SERVER: mongo

Setup Hoppscotch

Proxy API Request

To setup Hoppscotch, you can visit http://localhost:3000arrow-up-right, then go to setting tab. You need to set Proxy to http://localhost:9159arrow-up-right, so that your debug tools can interact with container internal Networks.

Now you can test with http://web:3000/statusarrow-up-right to check if web is alive:

CSRF Problems

circle-exclamation

In your console, you may see:

To deal with this in your overleaf development, you need to setup your csrf token. Here is the detailed tutorial.

1

Add Pre Request

Add the following code to Pre-Request

The script is as list:

2

Add Request Header

You need to add the following headers:

Header Name
Header Value

Content-Type

application/json

X-Csrf-Token

<<csrftoken>>

Cookie

<<cookie_header>>

3

Login with API Tools

Now you can login with your username and password.

Here is the response when you input the wrong username or password.

Last updated

Was this helpful?