ℹ️ You can visit the website here: sherlock.benjaminfayaz.de
This project is a web client for the deno implementation of the sherlock project.
Since we fetch the site results directly in the browser, we need to avoid CORS via a CORS Proxy. You can use any desired CORS proxy but in this case I am using the cors-anywhere project. For ease of use you can use one of the docker images like
docker run -p 3000:3000 psimonov/cors-anywhere
When you want to adjust code of the original sherlock-deno project, you have to do the following steps:
- Create a symlink of the original sherlock-deno project
ln -s PATH_TO_SHERLOCK_DENO PATH_TO_SHERLOCK_DENO_WEB/sherlock-deno
This is necessary because in this web project we can't import external local modules (see this issue for reference)
- Change the import map of the sherlock module
{
...
"sherlock/": "https://deno.land/x/sherlock@v2.1.0/src",
}
becomes
{
...
"sherlock/": "./sherlock-deno/src/",
}
Now you can work with your local clone of both projects.
Sadly the aleph build
command doesn't work. Run it once, then manually correct the following import in .aleph/production/app.bundling.js
:
import "./-/fonts.googleapis.com/css2.[SOME-HASH].bundling.js";
to
import "./-/fonts.googleapis.com/css2.[SOME-HASH].js"; // remove the .bundling
and then run it again.