Use this repository if you would like to start your project with Slim Framework using PHP and Angular for the frontend.
- Docker (Optional)
- Docker Compose (Optional)
- PHP 7.0+
- MySQL
- Angular CLI
- MySQL Workbench
We recommend that you use our docker image instead of trying to manage everything on your own. With our docker image, you can get up and running in minutes.
Use the following instructions if you have Docker installed on your machine.
Navigate to the repository directory using your command line tool and use the following command to build the included dockerfile as an image.
docker build -t <image_name> . Open the docker-compose.yml file in your favorite editor and edit the image variable to the new name of the image set in Step 1.
services:
website:
image: <image_name>Run the following command from the repository directory to have Docker create the necessary Apache+PHP and MySQL containers.
docker-compose up -dRun the following command on your terminal
docker exec <container_name> composer installRun the following commands from the root of the angular folder.
ng build --watch
gulp watch