An open API service indexing awesome lists of open source software.

https://github.com/leapfrogtechnology/sports


https://github.com/leapfrogtechnology/sports

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Sports

[![Build Status](https://travis-ci.org/leapfrogtechnology/sports.svg?branch=master)](https://travis-ci.org/leapfrogtechnology/sports) [![codebeat badge](https://codebeat.co/badges/6b922467-0143-4179-8797-34ced7fd4728)](https://codebeat.co/projects/github-com-leapfrogtechnology-sports-dev-5fb55e9c-0db5-46f0-af9a-4d1a3f038925)

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.

## Individual setup

* For individual setup, refer to the specific project folder.

## All-in-one Setup (docker)

* 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 use `docker-compose up `. To run the application in background, use `docker-compose up -d `. The logs can be seen through `docker-compose logs`.

* Checkout the applications through `http://localhost:`.

* 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 yarn `.

* You can also execute the commands as usual by entering into the container: `docker-compose exec bash`. It gives a bash shell.