Skip to content

padabou/materialLoaning

Repository files navigation

materialLoaning

Personal project about material loaning inside an association

  • Run your application:
  1. Change to the project directory

  2. Create your code repository with the git init command

  3. Execute the php -S 127.0.0.1:8000 -t public command

  4. Browse to the http://localhost:8000/ URL.

    Quit the server with CTRL-C. Run composer require server --dev for a better web server.

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:

    1. Create your first API resource in src/Entity;
    2. 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

http://localhost:8001/admin

  • yarn encore dev
  • yarn encore dev --watch
  • yarn encore production

name / link / picture / description / type /role

create new password for your user :

 php bin/console security:encode-password toto

Heroku Deployement

  • heroku git:remote -a
  • heroku buildpacks:set heroku/nodejs
  • heroku buildpacks:set heroku/php
  • heroku logs --tail

"bin/console doctrine:migrations:migrate --no-interaction",

About

Personal project about material loaning inside an association

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published