No description
  • CSS 55.1%
  • PHP 27.3%
  • Twig 16.4%
  • Dockerfile 0.5%
  • Shell 0.5%
  • Other 0.2%
Find a file
2026-05-27 15:42:28 -05:00
.understand-anything chore(understand): update knowledge graphs 2026-05-27 02:33:22 -05:00
assets style: add fonts and update css to point to fonts 2026-05-27 05:37:54 -05:00
bin Add webapp packages 2024-10-17 10:52:33 -04:00
config Address Symfony 7 deprecations 2026-05-13 16:26:32 -04:00
docker Install composer in web container 2024-10-17 17:03:19 -04:00
docs chore(understand): update knowledge graphs 2026-05-27 02:33:22 -05:00
migrations chore(migrations): delete the default test migration 2026-05-27 15:34:03 -05:00
public Install and configure asset mapper 2024-10-17 17:03:40 -04:00
src chore(importer): remove extra node fields from query 2026-05-27 06:04:30 -05:00
templates chore: delete Test files that we do not need 2026-05-27 04:42:01 -05:00
tests tests: have llm update tests 2026-05-27 01:21:03 -05:00
translations Add webapp packages 2024-10-17 10:52:33 -04:00
.env chore: remove added secrets and set back to original state 2026-05-26 23:40:38 -05:00
.env.test Add webapp packages 2024-10-17 10:52:33 -04:00
.gitignore style: add fonts and update css to point to fonts 2026-05-27 05:37:54 -05:00
compose.override.yaml.dist Add readme 2024-10-18 10:09:23 -04:00
compose.yaml Add readme 2024-10-18 10:09:23 -04:00
composer.json Upgrade to PHPUnit 12 2026-05-13 16:22:51 -04:00
composer.lock Upgrade to PHPUnit 12 2026-05-13 16:22:51 -04:00
Dockerfile Add unzip and intl extension to image 2024-10-18 10:08:50 -04:00
importmap.php feat(ui): add lcars repository layout 2026-05-27 04:23:14 -05:00
phpunit.xml.dist Upgrade to PHPUnit 12 2026-05-13 16:22:51 -04:00
README.md docs(README): fix clear:cache command to cache:clear 2026-05-27 15:42:28 -05:00
symfony.lock Upgrade to PHPUnit 12 2026-05-13 16:22:51 -04:00

Additional Code Challenge Setup

Github Personal Access Token

Create a fine-grained personal access token, no extra permissions needed.

Create .env.local

  • create a .env.local file
  • add GH_PERSONAL_ACCESS_TOKEN=<your token here>
  • add GH_BASE_API_URL=https://api.github.com/graphql

Setup

Run setup as described below.

Import Github data

Run the console command to import the most stared PHP projects.

Run the cli command docker compose exec web php bin/console app:github:import-repositories 50 where 50 is the number of repos to import.

VUMC VICTR Flagship Symfony Application Template

Prerequisites

  • Docker Desktop (or Docker + Docker Compose)
  • [Optional] MySQL client

Setup

1. Configure ports

By default, the web server will be accessible on port 8080 and the database server will be accessible on port 8306. If these ports are already in use on your machine, you can override the ports:

cp compose.override.yaml.dist compose.override.yaml

Edit compose.override.yaml to specify the port you would like to use. For example, if you want to change the web server port from 8080 to 9000, the web block should look like:

services:
  web:
    ports:
      - "9000:80"

2. Start docker containers

docker compose up -d

The first time you run this, it will take a few minutes to download the PHP and MariaDB images and install a few PHP extensions.

3. Install Composer dependencies

docker compose exec web composer install

The application should be running at http://127.0.0.1:8080/ (or whatever port you specified in composer.override.yaml).

4. Test database and Doctrine configuration

To confirm that the database configuration is working, a "Test" entity and controller has been added.

First, run the migrations to create the test table:

docker compose exec web bin/console doctrine:migrations:migrate

Go to http://127.0.0.1:8080/test/ to make sure adding and deleting entities is working properly.

Additional notes

Web container

In addition to running composer install, you can run any other command by using docker compose exec web. For example, to clear the Symfony cache:

docker compose exec web bin/console cache:clear

To run PHPUnit:

docker compose exec web vendor/bin/phpunit

If you want to open a shell to the web container, run:

docker compose exec web bash

Database container

This project uses the MariaDB Docker image for the database, which should already be configured properly in the Symfony application in the .env file.

The official MariaDB container does not include the mysql command line client. If you want to connect to the database from your host machine, you will need a MySQL client installed locally. The root user account is configured to work without a password.

Host: 127.0.0.1
Port: 8306 (or the port you specified in composer.override.yaml)
Username: root
Database: app

For example, using the mysql command line client, you would connect with:

mysql -uroot -h127.0.0.1 -P8306 app

Cleanup

Stop the containers:

docker compose stop

Stop and remove the containers:

docker compose down

Stop and remove the containers and remove the associated images and volumes:

docker compose down --volumes --rmi all