- Clone this repo && cd into it
- Run
cp .env.example .env
- Run
docker-compose up -d
- Run
docker exec -it assignment-project npm run watch
to build/watch with webpack - Visit http://localhost:8085 to see the page.
The application is now running within the docker container. There's a mysql container and an application container. These are basically computers within your computer.
To "get in" to the application container in order to run commands, you'll need to run this:
# - execute in an interactive terminal (-it)
# - on the assignment-project container
# - the bash command (to open a prompt)
docker exec -it assignment-project bash
# Now you can run whatever you like from within the container:
php artisan tinker