2017 © Pedro Peláez
 

project project

The basis for new projects.

image

drago-ex/project

The basis for new projects.

  • Wednesday, May 30, 2018
  • by accgit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Drago Project

Basis for new modules projects on Drago Extension, (*1)

PHP version Coding Style CodeFactor, (*2)

Technology

  • PHP 8.3 or higher
  • composer
  • docker
  • node.js

Installation

composer create-project drago-ex/project

Basic information

Basic package for applications where the basis for Bootstrap, Vite, Docker, Naja is already prepared. You can find all commands in package.json like running Docker or Vite., (*3)

First, run npm install, (*4)

Docker

Docker is set to the minimum configuration for running the project., (*5)

If we want to add, for example, MySQL, we add these lines to the dockerfile:, (*6)

# php extensions
RUN docker-php-ext-install mysqli
RUN docker-php-ext-enable mysqli

And add these lines to docker-compose.yml to configure the MySQL server as needed:, (*7)

# database
db:
  image: library/mariadb:latest
  command: --character-set-server=utf8 --collation-server=utf8_unicode_ci
  restart: always
  environment:
    MYSQL_ROOT_PASSWORD: root
    MYSQL_DATABASE: app
    MYSQL_USER: super
    MYSQL_PASSWORD: pass
    volumes:
      - ./docker/mysql/:/var/lib/mysql
    ports:
      - '6033:3306'

As for further configuration on Docker, you can find it in the documentation., (*8)

If we use database, we can use Entity generation

composer require drago-ex/generator --dev

Use the command to copy the necessary files: copy .\vendor\drago-ex\generator\bin\* bin, (*9)

Then edit the configuration including the database in bin/config.neon, (*10)

And run the command: php .\bin\generator app:entity, (*11)

Info

The project with the database set up in this way is available in the database-project branch., (*12)

The Versions

30/05 2018

dev-master

9999999-dev

The basis for new projects.

  Sources   Download

MIT

The Requires

 

30/05 2018

v1.0.1

1.0.1.0

The basis for new projects.

  Sources   Download

MIT

The Requires

 

29/05 2018

v1.0.x-dev

1.0.9999999.9999999-dev

The basis for new projects.

  Sources   Download

MIT

The Requires

 

29/05 2018

v2.0.x-dev

2.0.9999999.9999999-dev

The basis for new projects.

  Sources   Download

MIT

The Requires

 

18/10 2017

v1.0.0

1.0.0.0

The basis for new projects.

  Sources   Download

MIT

The Requires