Restaurants project made with a Symfony backend and 2 frontends (React and Vue).
- Restaurants list (react and vue)
- Restaurant details (react and vue)
- Login (react)
- Register (react)
- User favorites restaurants (react)
- Update user data (react)
- Symfony 5.0.2
- Doctrine (php library for working with databases)
- NelmioCorsBundle (allows to send Cross-Origin Resource Sharing headers)
- MySQL
- Twig
- React
- Axios (client http library for Javascript)
- Redux
- React
- Redux
- Vue 2.6.10
Install libraries:
-
cd backend_symfony
-
sudo composer update
-
sudo composer require symfony/http-client
-
sudo composer require symfony/filesystem
Run backend:
- sudo symfony server:start
- http://localhost:8000/
- php bin/console make:entity
- php bin/console doctrine:schema:update --force
- php bin/console cache:clear
- bin/console debug:router
- php bin/console make:entity
- sudo symfony server:stop
-
install react router sudo npm install react-router-dom
-
cd frontend_react
-
npm install (to force NPM to install dependencies use: sudo npm install --unsafe-perm=true --allow-root)
-
npm run start
- cd frontend_conduit
- sudo npm install
- sudo npm start
- http://localhost:3001/
- cd frontend_vue
- sudo npm install
- sudo npm run lint --fix
- sudo npm run serve -- --port 3003 --host 0.0.0.0 --public 0.0.0.0:3003
- http://localhost:3003/
Build container:
- sudo docker-compose build
Run:
- sudo docker-compose up