This project is a web application developed with the Symfony 6 framework that allows users to register, authenticate with Google and access an administration panel. The application connects to a relational database and uses interactive forms to create, read, update and delete data. In addition, users can post comments on the web using Symfony forms.
Stars are welcome 😊
- Symfony 6
- PHP 8.2
- MySQL
- Docker
- NGINX
- Bootstrap 5
- Twig
- JavaScript
-
Clone the repository:
git clone https://github.com/serodas/panel-admin.git
-
Create the file
./.docker/.env.nginx.local
using./.docker/.env.nginx
as a guide. The value of the variableNGINX_BACKEND_DOMAIN
is theserver_name
used in NGINX. -
Add to the file
C:\Windows\System32\drivers\etc\hosts
the line127.0.0.1
and its corresponding value of the variable used inNGINX_BACKEND_DOMAIN
. -
Go to
./docker
and rundocker-compose up -d --build
to build the containers for the first time. From now on, just rundocker-compose up -d
. -
You must work inside the container
php
. This project is configured to work with Remote Container. So you can run the commandReopen in container
after opening the project. -
Inside the container
php
, runcomposer install
to install the dependencies from the folder/var/www/project
. -
Create the file
.env.local
using.env
as a guide.
You should have created the Google authentication token beforehand to replace the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET variables.
- Use the following value for the environment variable DATABASE_URL and work with the database of the container
mysql
:
DATABASE_URL="mysql://root:1234@mysql/admin_panel?serverVersion=5.7&charset=utf8mb4"
You can change the username and password of the database in ./docker/.env
.
9.Run yarn install
to install the JavaScript dependencies.