- change directory to backend with
cd backend - then excute
composer install - then change all variables in .env file
- then run
php artisan key:generateto generate unique key for this project it will assign to APP_KEY variable in .env file - then run
php artisan migrate:fresh --seedto create tables in database and insert defaul admin user :admin@admin.com, password :1234567890
change directory to frontend with cd frontend
then exicute npm install
- First of all, you will need to install docker on your computer
- run
docker-compose upto start all services - run
docker-compose exec backend bash init.shto install backend dependencies, you only need to run this once first time. - visit http://localhost:8888 to see the UI
Framework: Lumen framework 6.0
- you can visit backend endpoint via http://localhost:8088 directly from your browser.
- All your endpoints need to be prefixed with
api, otherwise the frontend dev server won't be able to talk to backend. e.g./api/players - Use controllers for all routes
- You need to use Eloquent ORM for your database model
Vuejs 2.6
- Visit http://localhost:8888 to open frontend app
- All API calls need to have
/apiprefix - Use Vue Router to do frontend routing
- Optional to use Vuex to manage frontend app state.
- Reasonably break down your components
- Use SCSS for styling
- Pick a UI library you like to use e.g. Bootstrap, Tailwind CSS, Bulma etc
Mysql 5.7
- You can connect to database directly via port 3306, see
docker-compose.ymlfile for credentials.
docker-compose uprun this to start project if you want to see some logs outputdocker-compose exec backend bashget a bash shell from backend serverdocker-compose exec frontend npm install [package]install a npm package for frontend- for more
docker-composeusage, see the docker official documents.