Welcome to the Advent Of Code project!
Before running the scripts, you need to set up your environment by creating a .env
file in the project's root folder. Add your cookie string under the COOKIE
variable in the .env
file.
# .env
COOKIE=your_cookie_string_here
Make sure to keep your cookie information secure and not share it publicly.
To install the project dependencies, run:
npm install
To fetch data for a specific day, use the following command:
npm run data -- <Day>
Replace with the day number (starting from 2) for which you want to fetch data.
To run the main script for a specific day and part, use the following command:
npm run start -- <Day> <Part>
Replace with the day number (starting from 2), and with either 1 or 2 to indicate the part of the challenge.
npm run data 3
npm run start 4 1
npm run start 4 2
Feel free to adapt the information in this README to fit your project's specific needs. Good luck with your Advent of Code challenges!