Skip to content

laurpe/event_app

Repository files navigation

Events App

CRUD app for events. Created during studies in Business College Helsinki in spring 2022.

Built with

  • Symfony
  • ReactJS
  • Docker
  • Bootstrap
  • Material UI
  • React Leaflet

Installation

Symfony-MAMP

  1. Install SYMFONY-MAMP from here: https://github.com/kalwar/Symfony-MAMP

  1. Go to Symfony-MAMP/php/vhosts/stacksf.conf and add:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Setting up the project

  1. Inside the Symfony-MAMP folder, clone the project and rename it to web
  2. Inside the web folder create .env file and add and edit these lines there:
APP_ENV=dev
DATABASE_URL=https://ADD YOUR DATABASE URL HERE E.G: mysql:https://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=https://WRITE YOUR OWN PASSPHRASE HERE
  1. Inside the web folder terminal, run:
composer install
composer require symfony/webpack-encore-bundle
npm install
php bin/console lexik:jwt:generate-keypair

Creating the database

  1. 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.

  1. 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

Running the project

  1. 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)!

Licence

MIT licence.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •