CRUD app for events. Created during studies in Business College Helsinki in spring 2022.
- Symfony
- ReactJS
- Docker
- Bootstrap
- Material UI
- React Leaflet
- Install SYMFONY-MAMP from here: https://github.com/kalwar/Symfony-MAMP
- Go to Symfony-MAMP/php/vhosts/stacksf.conf and add:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- Inside the Symfony-MAMP folder, clone the project and rename it to web
- Inside the web folder create .env file and add and edit these lines there:
APP_ENV=dev
DATABASE_URL=//ADD YOUR DATABASE URL HERE E.G: mysql://USERNAME:PASSWORD@db:PORT_WHERE_THE_DB_IS_RUNNING/events_app?serverVersion=5.7
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=//WRITE YOUR OWN PASSPHRASE HERE
- Inside the web folder terminal, run:
composer install
composer require symfony/webpack-encore-bundle
npm install
php bin/console lexik:jwt:generate-keypair
- Inside the Symfony-MAMP folder run:
docker-compose up --build
You might need to run the above command at least twice to make the events_app database to be created.
- In the Docker Desktop App, open the Symfony Mamp www container's client, seek into web (cd web) and run the following:
php bin/console make:migration
doctrine:migrations:migrate
- Run the server in web folder's terminal:
npm run watch
You can stop the server with ctrl + c.
Now the project should run inside port 8007 (localhost:8007)!
MIT licence.