https://github.com/v1kuznetsov/market
This repository is my completed final task in BranderSchool on knowledge PHP, Symphony, Twig, Docker, composer and OOP.
https://github.com/v1kuznetsov/market
composer docker-compose symfony-bundle
Last synced: 2 months ago
JSON representation
This repository is my completed final task in BranderSchool on knowledge PHP, Symphony, Twig, Docker, composer and OOP.
- Host: GitHub
- URL: https://github.com/v1kuznetsov/market
- Owner: v1kuznetsov
- License: mit
- Created: 2022-10-17T19:18:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T20:10:35.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T12:52:58.882Z (over 1 year ago)
- Topics: composer, docker-compose, symfony-bundle
- Language: PHP
- Homepage:
- Size: 1.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Market
This project is my final task in BranderSchool on knowledge PHP, Symphony, Twig, Docker and Composer
## Installation
In the console, write:
```bash
sudo docker compose up -d
```
\*If you have problems starting the MySQL and nginx containers, try:
```bash
sudo service nginx stop
sudo service mysql stop
```
In the same window write:
```bash
sudo docker exec -it php-fpm bash
```
In the opened PHP container, write:
```bash
composer install
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
```
Open a new console window and write:
```bash
sudo docker exec -it mysql bash
```
Then write in the MySQL container:
```bash
mysql -uroot -p
```
In the window that appears, write:
```mysql
root
```
While in database, write:
```bash
use market_test;
```
## Usage
After registration on the store page, add administrator rights to the desired user:
```bash
update user set roles = JSON_OBJECT('admin', 'ROLE_ADMIN') where id=(your user number in the user table);
```
After this, an admin panel tab will appear in the header, accessible only to the administrator, from which you can add categories and products.
## License
[MIT](https://choosealicense.com/licenses/mit/)