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.
$ cp .env.example .env
$ docker-compose build
$ docker-compose up -d
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
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
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