This is a Docker based development setup for php back end and angular front end, this include redis server for session management and mysql server as well. With this, you wouldn't have to hassle configuring your local machine with anything except the IDE, all the required stuff will be installed in docker containers hence your machine will stay clean.
- Docker installation
- Python installation (tested with python3)
- Python docker installation (pip install docker)
- Simply clone the repo
- Modify the
config.ini
with relevant properties - Run
setup.py
with commandpython setup.py
- Run
startup.py
with commandpython startup.py
Then you can point to http://localhost/{your_php_app_name} to access the back end php site http://localhost/{your_angular_app_name} to access your angular application
You would only need to change config.ini file as it has all the required configurations.
Note - first time you run startup.py
it won't work properly, because angular takes some time to build the
distribution, so php server startup before distribution folder is created(hence mount won't work properly)
so, simply restart the php server and it will work. (subsequent startup.py
calls will work properly as angular distribution folder is not getting deleted)
- Docker installation
- Docker compose installation
- Simply clone the repo
- Create the missing folders
- Modify the
.env
with relevant properties - Run
docker-compose up
Then you can point to http://localhost/{your_php_app_name} to access the back end php site http://localhost/{your_angular_app_name} to access your angular application