Skip to content

salmon-stats/api

Repository files navigation

salmon-stats-api

Overview

Installation

git clone https://github.com/yukidaruma/salmon-stats
docker-compose build

cp example.env .env
# Update .env if necessary.
# You must provide Twitter API key in order to use login with Twitter feature.
vi .env

docker-compose exec app bash
composer install --no-dev # TODO: move `composer install` to Dockerfile
php artisan key:generate
php artisan migrate

# Fetch past Salmon Run schedules
php artisan salmon-stats:fetch-schedules

# Add **host** crontab
* * * * * php /{path_to_project}/artisan schedule:run >> /dev/null 2>&1

Running tests

docker-compose exec app vendor/bin/phpunit

Start

docker-compose up -d

Third-party APIs

This app is using following third-party APIs.

Releases

No releases published

Packages

No packages published

Languages