/coding-assignment-intermediate

Intermediate coding assignment with a headstart on the database

Primary LanguageTSQL

Getting Started

  1. Clone this repo && cd into it
  2. Run cp .env.example .env
  3. Run docker-compose up -d
  4. Run docker exec -it assignment-project npm run watch to build/watch with webpack
  5. Visit http://localhost:8085 to see the page.
  6. Connect to the MySQL db with these creds:
host:       127.0.0.1
port:       3308
db:         assignment
username:   assignment
password:   secret

Interacting with the Docker Container

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