An application to manage the sports events. It includes the followings:
- Web App - The view only UI for the events.
- Admin App - The admin dashboard to manage the events.
- API - The backend part to make the management possible.
- For individual setup, refer to the specific project folder.
-
Copy the
.env.docker
and save as.env
. Update the variables.NOTE: The db variables should be same inside the api folder as well for migrations to work.
-
Run
docker-compose up
from the root folder to run all the applications at once. To run a specific application usedocker-compose up <service_name>
. To run the application in background, usedocker-compose up -d <service_name>
. The logs can be seen throughdocker-compose logs
. -
Checkout the applications through
http://localhost:<PORT>
. -
Run
docker-compose ps
from the root folder to check the status of the containers. -
To run the migrations, perform the following command from the root folder:
docker-compose exec api yarn migrate
. -
Similarly, for seeding:
docker-compose exec api yarn migrate
. -
To run other scripts, use the following command:
docker-compose exec <service_name> yarn <script_name>
. -
You can also execute the commands as usual by entering into the container:
docker-compose exec <service_name> bash
. It gives a bash shell.