A project template to make creating webapps easier.
A template to build websites using PHP 7.2 with Ubuntu 18.04 containers. This currently uses the slim framework version 3.
# Create your project from this template using composer. composer create-project programster/web-app-template my-project-name # Use composer to pull the slim framework cd Docker-Slim3-PHP-WebApp-Template/app composer update # Create the .env file from the template file # be sure to review its settings and fill in appropriately. cp .env.tmpl .env # Build and deploy the docker container. cd ../docker bash build.sh bash deploy.sh
Whilst developing your application, you can make use of the
dev-deploy.sh script instead
deploy.sh script. The difference is that your container will load your files through a
volume. Thus your changes are reflected immediately and you do not have to keep rebuilding and
re-deploying your docker container.
Click here to find out how to deploy your own private docker registry in under a minute.
Easily add cron jobs to your container by adding lines to the