- Framework: Next.js
- State Management: Recoil
- Deployment: Vercel
- Analytics: Plausible with next-plausible
- FP-Linting: eslint-plugin-fp
- Styling: Tailwind CSS
- Icons: Heroicons
- Font: VT323
puzzles/
- 👈 This is where the puzzles arelib/
- State management and "game" logic, to schedule puzzle executiontemplate/
- Template generator and template files for the CLIpages/
- Next.js pagescomponents/
- React componentsstyles/
- Tailwind CSS stylespublic/
- Static assets (you know, like favicon)
This application requires Node.js v16.13+ and Yarn v1.22+.
git clone https://github.com/MartinSeeler/advent-of-code-next.git
cd advent-of-code-next
yarn install
yarn dev
Your app should now be running on localhost:3000.
I won't do fancy stuff like logging in to the AoC website and downloading the puzzle input. Instead, I'll just generate a new puzzle boilerplate with the following command:
yarn new-day
Enter the day number and the puzzle title and you're good to go. Open the generated file in puzzles/
and start coding. You can insert your puzzle input in the input.txt
file and adapt tests in the solution.test.ts
file.