A very simple demo app built as part of my talk on AWS. Powered by Symfony 4. The app is a website for the talk and consists of a homepage and a comment page where users can leave comments. The comments are saved on a mysql database. For a serverless version of this web app check out serverless-webapp.
This web application requires
- PHP >= 7.1.3
- MySQL >= 5.7
- Node.js
As usual, run composer install
to install dependecies.
Update the /config/packages/database-config.php
accordingly to you database configuration.
Insert you Google Maps API Key in config/services.yaml
.
If you skip this passage the map in the homepage won't work properly.
For webserver configuration see this page from the Symfony docs. The Symfony deployment guide also is very informative.
I provided a few useful npm script:
serve
: run the development serverwebpack-dev
: run Webpack Encore in dev modewebpack-prod
: run Webpack Encore in production modedrop-database
,create-database
,create-schema
: self-explanatory shorthands for doctrine commandscreate-source-bundle
: creates a source bundle ready to be uploaded on Elastic Beanstalk