Skip to content

Latest commit

 

History

History
110 lines (83 loc) · 3.06 KB

README.md

File metadata and controls

110 lines (83 loc) · 3.06 KB
Laravel Total Stars: 59

2015: 0 2016: 0 2017: 0 2018: 0 2019: 4
2020: 0 2021: 29 2022: 10 2023: 16 2024: 0

laravel-advent-of-code

Advent of Code solution repository.

Should you want to use my template repository, head to vorban/laravel-advent-of-code.

This is not made to be hosted. This is a compilation of my solutions to the Advent of Code, using Laravel and PHP.

Solutions are found in app/Solutions.

Released under the MIT License. See LICENSE.

Copyright ©️ 2023 Valentin Orban

AoC compliance and usage of this template

This repository does follow the automation guidelines on the /r/adventofcode community wiki. Specifically:

  • No automation is provided
  • Outbound calls to the /events endpoint are cached for 24h (see app/Console/UpdateBadgesCommand.php)
  • Once inputs are downloaded, they are cached locally indefinitly (see app/Console/PrepareCommand)
  • The User-Agent header is set to me

This template repository is provided as-is, as detailed in the LICENSE file.

It is a showcase of my skills, not a project that aims to be hosted.

Although a Laravel application, this code is not fit to be hosted. Specifically, the code as-is is not fit for any kind of automation or production environments.

Installation

Go to vorban/laravel-advent-of-code and follow instructions.

git clone [email protected]:vorban/advent-of-code.git
cd advent-of-code

cp .env.example .env

Using docker ?

docker run --rm --interactive --tty --volume $PWD:/app composer install

vendor/bin/sail up -d
echo Enjoy!

Got a local dev environment ?

composer install
echo Enjoy!

Usage

Use sail or php depending on wether you want to use docker or not.

# generate code file and download input
sail artisan aoc:prepare {year} {day}

# hopefully first try !
sail artisan aoc:run {year} {day} {--example}

# once you're done for the day
sail artisan aoc:update-badges