Skip to content

LuckyShine is a game where users can collect treasures in a given latitude and longitude.

Notifications You must be signed in to change notification settings

pavinthan/luckyshine

Repository files navigation

LuckyShine

Description

LuckyShine is a game where users can collect treasures in a given latitude and longitude. Every treasure that is collected will have points based on the monetary value. A treasure may have more than one money value, it depends on the user’s luck. Lucky users may get the highest money from the treasure that has been collected.

Config

$ cp .env.example .env

Build

$ docker-compose build

Run

$ docker-compose up -d

Database Migration

Before this, make sure you set up a mysql database on your machine and create environment variable named 'DATABASE_URL' with the connection url. Then the following command will automatically create the relevant tables in the database

$ docker-compose exec app yarn migrate

Database Seed

Before this, make sure you set up a mysql database on your machine and create environment variable named 'DATABASE_URL' with the connection url. Then the following command will automatically create the relevant tables in the database

$ docker-compose exec app yarn seed

Run automated tests

Note that by design, the first time you run the tests, a couple of the tests will fail because the database will only be populated on this first run. But on subsequent run, all tests will pass.

$ yarn run test

About

LuckyShine is a game where users can collect treasures in a given latitude and longitude.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages