mlcrm/starter

Starter A

Maintainers

Details

github.com/mlcrm/starter

Source

Issues

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

v1.0.6 2021-12-26 10:36 UTC

This package is auto-updated.

Last update: 2024-03-28 22:00:29 UTC


README

What is required?

php: '>=8.0.2'
composer: '>=2'
nodejs: '>=14'
yarn: '>=1.22.17'
docker: '>= 20.10.12'
docker-compose: '>= 1.29.2'

This template is designed for a quick start of enterprise application development based on the symfony framework.

It contains a ready template of administrative panel, main page template, authorization controllers, etc. Uses docker, nginx, php 8, bootstrap 5, stimulus 3

The following functionality is implemented in the template

  1. User locale detection: [App\EventSubscriber\StartupSubscriber]
  2. Separate entry points and firewalls for the control panel and the user's personal account
  3. [App\Service\DocumentService] allowing you to add an entry point, set title, description, keywords, etc. A global document variable is available for all twig templates
  4. ...

For a quick start, run the following commands:

1. Install the javascript dependencies and run build:

yarn install && yarn build
# or
npm install && npm run build

2. Build and run a docker container

make build && make start
# or
docker-compose build && docker-compose up -d
# then
make cache-clear (docker exec -it php-fpm php bin/console cache:clear) or go to homepage: http://127.0.0.1:8000

3. Update database schema

make schema-update
# or
docker exec -it php-fpm php bin/console doctrine:schema:update --force

4. Add the system administrator and user to the database

make fixtures
# or
docker exec -it php-fpm php bin/console doctrine:fixtures:load

http://127.0.0.1:8000 - homepage
http://127.0.0.1:8080 - database control panel
http://127.0.0.1:8000/dashboard - control panel [user: admin@example.com, password: admin_]
http://127.0.0.1:8000/account - user's personal account [user: user@example.com, password: user_]