Personal project about material loaning inside an association
- Run your application:
-
Change to the project directory
-
Create your code repository with the git init command
-
Execute the php -S 127.0.0.1:8000 -t public command
-
Browse to the http://localhost:8000/ URL.
Quit the server with CTRL-C. Run composer require server --dev for a better web server.
- Read the documentation at https://symfony.com/doc
Database Configuration
-
Modify your DATABASE_URL config in .env
-
Configure the driver (mysql) and server_version (5.7) in config/packages/doctrine.yaml
-
create entity ./bin/console make:entity Product
What's next?
-
Your API is almost ready:
- Create your first API resource in src/Entity;
- Go to /api to browse your API
-
To enable the GraphQL support, run composer require webonyx/graphql-php, then browse /api/graphql.
-
Read the documentation at https://api-platform.com/docs
-
Next: When you're ready, create a migration with ./bin/console make:migration
-
php bin/console doctrine:migrations:migrate
-
apply specific migration
php bin/console doctrine:migrations:execute 20191027215244 --up -
apply specific migration ROLLBACK
php bin/console doctrine:migrations:execute 20191027215244 --down -
./bin/console doctrine:database:create
-
./bin/console doctrine:schema:update --force
-
./bin/console make:crud BlogPost
Load Fixtures :
- bin/console doctrine:fixtures:load
easy admin : php -S 127.0.0.1:8000 -t public
- yarn encore dev
- yarn encore dev --watch
- yarn encore production
name / link / picture / description / type /role
php bin/console security:encode-password toto
- heroku git:remote -a
- heroku buildpacks:set heroku/nodejs
- heroku buildpacks:set heroku/php
- heroku logs --tail
"bin/console doctrine:migrations:migrate --no-interaction",