Simple online wallet system built with Laravel and Angular.
$ cd src
$ docker-compose up
| port | |
|---|---|
api |
8000 |
web |
4200 |
$ cd src
$ docker-compose -f docker-compose.dev.yml up
| container | port | |
|---|---|---|
php artisan serve |
wimm-api-dev |
8000 |
ng serve |
wimm-web-dev |
4200 |
Sometimes docker fails without any obvious reasons, resulting in all ports (even though published) not accessible from the host. In case it happens, here is the manual way of starting the project with ng serve and php artisan serve:
$ cd src/api/laradock
$ docker-compose up -d mysql workspaceFind the id of the workspace container:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4a64f9f5e3be laradock_workspace "/sbin/my_init" 41 seconds ago Up 35 seconds 0.0.0.0:2222->22/tcp, 0.0.0.0:8000->80/tcp laradock_workspace_1bash into the workspace container:
$ docker exec -it 4a64f9f5e3be bashRun php artisan serve on host 0.0.0.0
$ php artisan serve --host=0.0.0.0 --port=80
Laravel development server started: <http://0.0.0.0:8000To start the Angular development server, run these on the host:
$ cd src/web
$ ng serveTo initialize the database, navigate to localhost:4200/app/profile/ and click on Initialize database and Populate sample data.
This project is made for my TSE2231 Software Engineering Fundamentals subject.