Display the Overleaf logo in any color you like! (This is an application we sometimes use for interview questions.)
The application is available via Docker:
docker pull overleaf/logo-exercise
Or you can run the application locally if you have node
installed (version 10+ required).
git clone [email protected]:overleaf/logo-exercise.git
cd logo-exercise
npm install
npm start
The application accepts configuration via two environment variables:
PORT
(required): the port number to listen onCOLOR
(optional; defaultblue
): the color of the logo, as a web color name or hexadecimal RGB value
If you'd like to read the code, the most important files are:
./server.js
--- entry point that runs the express application./src/app.js
--- the express application./views/index.pug
--- the HTML page comes from here
There is also a basic test in ./test/app.test.js
, which you can run locally with npm test
.