- Run
npm install
in project root. - Run
bower install
in public folder.
run grunt server
from project root. Access it with http://localhost:8080
- create env file in root (refer .env.example)
- run
php artisan key:generate
- run
php artisan migrate
- run
php artisan db:seed
- run
php artisan update:initStocks
[to initialize stocks. You need to enable Curl extension for php] - run
php artisan serve
from root. [keep it running in the background & use http://localhost:8080 to view the Game.]
Cron Scripts
- run
php artisan list
. See theupdate
section
- Stocks : Most important table in the application, where all the live stocks are saved. Stocks are updated every minute by cronjob.
- bought stocks : Stores stocks bought by users
- short sell : Short selling details of users
- schedules: Stores scheduled transcations
- history : Every transcation is basically logged in history table, so that if anything goes wrong, we can simulate the game by running the transactions again.
- Crons : app/console/commands/
- Apis : app/Http
- Models: app/*.php
- Game Configuration : config/bullz.php
- html and js : resources/src
- styles : resources/assests
- Facebook App configuration: production app id : '551333468325789' Test : '882961331768341'
- Writing Tests: Use Laravel test api to test the game properly
- Fix Simulation Code
- Facebook share events
- Ideas to make it more interesting.