College Confessions Web API and Frontend
This is the github repo for the web api as well as the frontent.
Technologies used:
Symfony 3
MySQL 5.6
Composer
Assetic
Twig
git clone git@github.com:adrestia/adrestia_web.git
cd adrestia_web
rm -rf var/cache/* var/logs/* var/sessions/*
HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
sudo chmod -R +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
This is so that the webserver can write to the cache file properly.
If these instructions don't work, check here
This should be pretty self explanatory.
If you need access to the database, please ask.
You can reach me by email, kyleminshall@gmail.com
Run composer update or composer install.
This will download all of the dependencies outlined in the composer.json.
Composer is a dependency management tool for PHP and is closely integrated into Symfony. USE IT.
You can find more information about it by reading its documentation here.
Run the command
php bin/console server:start
If you have set everything up right, you can access your copy of the server at http://localhost:8000.
php bin/console cache:clear --env=dev