Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,28 @@ sync-metadata-storage: ## Ensures that the metadata storage is at the latest ver
migrate: ## Runs the migrations
docker-compose run --rm apache php bin/console doctrine:migrations:version --add --all

import-allergens: # Import allergets' data
import-allergens: ## Import allergets' data
docker-compose run --rm apache php bin/console app:allergen:import

import-ccam: # Import CCAM' data
import-ccam: ## Import CCAM' data
docker-compose run --rm apache php bin/console app:ccam:import

import-diseases: # Import diseases' data
import-diseases: ## Import diseases' data
docker-compose run --rm apache php bin/console app:disease:import

import-drugs: # Import drugs' data
import-drugs: ## Import drugs' data
docker-compose run --rm apache php bin/console app:drugs:import

import-rpps: # Import rpps' data
import-rpps: ## Import rpps' data
docker-compose run --rm apache php bin/console app:rpps:import

import-test-data: # Import test data
import-jobs: ## Import jobs' data
docker-compose run --rm apache php bin/console app:job:import

import-test-data: ## Import test data
docker-compose run --rm apache php bin/console app:test:create

import-data: import-allergens import-ccam import-diseases import-drugs import-rpps # Import all data but test data
import-data: import-allergens import-ccam import-diseases import-drugs import-rpps import-jobs ## Import all data but test data

install-app: build composer-install update-schema load-fixtures sync-metadata-storage migrate ## Installs the application without importing the data

Expand All @@ -45,12 +48,17 @@ install: install-app import-data ## Installs the application & imports the data
shell: ## Gets a shell in the apache container
docker-compose run --rm apache bash

run: ## Runs all application's containers
docker-compose up
make-migration: ## Creates the migration for detected changes
docker-compose run --rm apache php bin/console make:migration

routes-dev: ## Lists all routes of the application
docker-compose run --rm apache php bin/console debug:router

run: ## Runs all application's containers
docker-compose up

start: run

stop: ## Stops all containers
docker-compose down -v

Expand Down
8 changes: 8 additions & 0 deletions config/api_platform/job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
App\Entity\Job:
shortName: Job
attributes:
allow_extra_attributes: false
collectionOperations:
get: ~
itemOperations:
get: ~
Loading