- Open terminal and type
cd $HOME/Desktop
- Clone repo
git clone git@github.com:DripDropz/RewardEngine.git
- Switch to repo dir
cd $HOME/Desktop/RewardEngine
- Copy
.env.example
as.env
(then make necessary changes to.env
file) - Run
make build
to build & start the containers - Application should be running locally at
http://localhost:8200
frontend-build
Rebuild frontendfrontend-watch
Runsnpm run dev
(vite watch/hot-reload mode) inside rewardengine-web containerfrontend-upgrade
Upgrades npm packages inside rewardengine-web containerup
Restart all docker containersdown
Shutdown all docker containersbuild
Rebuilds all docker containerscomposer-install
Run composer installdb-migrate
Run database migration(s)db-refresh
Drop all database tables, re-run the migration(s) with seedsapi-docs
Generates api documentation based on code annotationstinker
Starts a new php artisan tinker sessionstatus
View the status of all running containerslogs
View the logs out of all running containerslogs-web
View the logs out ofrewardengine-web
container onlylogs-cardano-sidecar
View the logs out ofrewardengine-cardano-sidecar
container onlyshell
Drop into an interactive shell inside rewardengine-web containerstats
View the resource usage of all running containersartisan
Execute Laravelartisan
command inside rewardengine-web container (e.g. usage:make artisan COMMAND="make:model MyModel -m"
)
Host: 127.0.0.1
Port: 33100
User: rewardengine
Database: rewardengine
Password: 123456