https://github.com/tobybatch/nrfc-fixtures
https://github.com/tobybatch/nrfc-fixtures
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tobybatch/nrfc-fixtures
- Owner: tobybatch
- Created: 2025-04-11T10:57:10.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-03T14:01:59.000Z (8 months ago)
- Last Synced: 2025-08-03T16:04:52.572Z (8 months ago)
- Language: PHP
- Size: 10.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# NRFC Fixtures
Supports managing fixtures for Norwich Rugby Club, I could easily be repurposed for other clubs or sports.
## Set up to dev TL;DR
You will need:
* [docker](https://docs.docker.com/get-started/introduction/get-docker-desktop/)
* On Mac you'll need [brew](https://brew.sh/)
* On windows you'll need bash, either [WSL](https://learn.microsoft.com/en-us/windows/wsl/install), [Git bash](https://git-scm.com/downloads)
```shell
git clone git@github.com:tobybatch/nrfc-fixtures.git
cd nrfc-fixtures
./bin/install-dependencies.sh
tilt up
```
**WAIT** - the first run builds the app, it'll take minutes, go here to keep an eye on it: http://localhost:10350/r/nrfcfixtures/overview. When it's up go to http://localhost:8001
* Login users are [here](https://github.com/tobybatch/nrfc-fixtures/blob/main/src/DataFixtures/Users.php)
* Changes in your local should be reflected in the site.
### Quick commands
**You must provide a compose file to run the following commands**
```shell
export COMPOSE_FILE=" -f .docker/compose.dev.yml"
```
Open a shell in the containers:
```shell
docker compose ${COMPOSE_FILE} exec nrfcfixtures bash
```
Reset the database (soft):
```shell
docker compose ${COMPOSE_FILE} exec nrfcfixtures bin/console doctrine:schema:drop --force
docker compose ${COMPOSE_FILE} exec nrfcfixtures bin/console doctrine:schema:create -n
docker compose ${COMPOSE_FILE} exec nrfcfixtures bin/console doctrine:fixtures:load -n
```
Reset the whole stack, keeps files, removes _all_ data/cache/etc:
```shell
docker compose ${COMPOSE_FILE} down
docker compose ${COMPOSE_FILE} volume rm nrfc-fixtures-dev-dbdata
rm -rf var/cache
tilt up # OR docker compose ${COMPOSE_FILE} up
```