Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karenyov/testesymfony
Teste Symfony
https://github.com/karenyov/testesymfony
doctrine orm php php8 symfony6
Last synced: 3 days ago
JSON representation
Teste Symfony
- Host: GitHub
- URL: https://github.com/karenyov/testesymfony
- Owner: karenyov
- Created: 2023-09-22T17:02:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-13T22:42:04.000Z (about 1 year ago)
- Last Synced: 2023-11-13T23:28:28.042Z (about 1 year ago)
- Topics: doctrine, orm, php, php8, symfony6
- Language: PHP
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Base Symfony
## Install without Docker
```sh
#clone the project to download its contents
cd ilogix/
git clone ...# make Composer install the project's dependencies into vendor/
composer install# run migrations
php bin/console doctrine:migrations:migrate# container -> run fixtures
php bin/console doctrine:fixtures:load# RUNNING
# use symfony CLI
symfony server:start# or use PHP
php -S localhost:8080 -t public/
```## Install with Docker
```sh
#clone the project to download its contents
cd ilogix/
git clone ...docker-compose build
docker compose up -d
# container > install composer
composer install# container > run migrations
php bin/console doctrine:migrations:migrate# container -> run fixtures - DADOS PARA TESTE **********
php bin/console doctrine:fixtures:load
```## Config
> Criar um aquivo .env.local e adicionar as configurações locais (uma cópia do .env)
```sh
DATABASE_URL=
DATABASE_COMPRAS_URL=...
```## Create New Migration
> Após criar uma nova Entity será necessário criar uma nova migration e executá-la. [Link](https://symfony.com/doc/current/doctrine/multiple_entity_managers.html).
```sh
# create or update entity in migration
php bin/console doctrine:migrations:diff --em=default #default
php bin/console doctrine:migrations:diff --em=compras #compras# run migration
php bin/console doctrine:migrations:migrate
```## Utils
```sh
# info project
php bin/console about# clear cache
php bin/console cache:clearcomposer dump-autoload
```
## react client
> requires node node and npm```sh
cd client/#once time
npm installnpm start
```