Evaluation project for the Hackathon Events on the Discord server from BlackScorp
- Install
git
anddocker
on your maschine - Run
git clone git@github.com:ownHackathon/hackathon-api.git
- Optional: Check the configurations in
config/autoload
. In case of changes, copy te file and remove the.dist
file extension and adjust the configuration file. - Copy
.env.dist
and rename it.env
and set correct your userid and groupid. You can find them out in the terminal via commandsid -u && id -g
- Run
docker-compose up -d
- Run
docker-compose exec php composer install
- Run
docker-compose exec php composer run doctrine migrations:sync-metadata-storage
- Run
docker-compose exec php composer run doctrine migrations:migrate
- Run
docker-compose exec php composer run openapi
Done. You can now open http://localhost/api/doc/ Thanks and have fun.
See docker-compose.yml for existing services
You will find a script called hackathon
under /bin
. This offers possibilities to control the project
./bin/hackathon setup
=> start the docker container, run composer install and seed Database Data./bin/hackathon start
=> start the docker container./bin/hackathon restart
=> restart the docker container./bin/hackathon stop
=> stop the docker container./bin/hackathon reset
=> clean up Database./bin/hackathon reset vendor
=> clean up vendor folder./bin/hackathon reset all
=> clean up system completely./bin/hackathon composer
=> run composer with own param e.g../bin/hackathon composer install
./bin/hackathon php
=> run commands in php container e.g../bin/hackathon php php -v