Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 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 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T20:10:35.000Z (6 months ago)
- Last Synced: 2024-08-02T22:58:21.239Z (6 months 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/)