Skip to content

LeetScrape TS

You can use the leetscrape-ts Next.js template to serve your solutions on the web. See the demo. Visit the repo for more details. You can generate the project using the leetscrape ts command:

leetscrape ts --out ./ts
This will bootstrap the project in the given directory. Follow the instructions in the README and create/modify the .env.local file. Then, run the following command to generate the mdx files:

leetscrape solution --out ./ts/src/content/solutions ./solutions

You can then run the project using the following command:

cd ./ts
npm run dev
cd ./ts
yarn dev
cd ./ts
pnpm dev
cd ./ts
bun dev