Skip to content

Commit

Permalink
Merge branch 'AlamedaCMS' into docss
Browse files Browse the repository at this point in the history
  • Loading branch information
gerMdz authored Nov 26, 2021
2 parents 2d65e15 + 553c36f commit b3c576a
Show file tree
Hide file tree
Showing 298 changed files with 82,448 additions and 2,002 deletions.
8 changes: 7 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ GOOGLE_TAG_ENABLE=false
GOOGLE_ID_DE_MEDICION=G-XXXXXXXXXX
GOOGLE_ID_DEL_FLUJO=XXXXXXXXXX
GOOGLE_TAG_MANAGER_ID=XXX-XXXXXXX
### < GoogleAnalytis4
### < GoogleAnalytis4

### > MAUTIC code
MAUTIC_ENABLE=false
MAUTIC_SITE=http://misitio.mautic
### < MAUTIC code

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ yarn-error.log

/public/vendors/tilt/
/public/css/stream-ui-kit/assets/vendors/
/public/fonts/awasome/
/public/fonts/druk/
/public/fonts/univers/
/public/css/stream-ui-kit/assets/img/
Expand Down Expand Up @@ -109,3 +108,8 @@ yarn-error.log
/public/images/institucional/qr-dom-10hs.jpg
/public/images/institucional/qr-dom-21hs.jpg
/public/images/institucional/qr-sab-21hs.jpg
/public/images/base.jpg
/public/images/logo-mail.png
/public/images/logo.png
/migrations/
/migrations/Version20210515203711.php
68 changes: 68 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/bin/bash

DOCKER_BE = grace-be
OS := $(shell uname)

ifeq ($(OS),Darwin)
UID = $(shell id -u)
else ifeq ($(OS),Linux)
UID = $(shell id -u)
else
UID = 1000
endif

help: ## Show this help message
@echo 'usage: make [target]'
@echo
@echo 'targets:'
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#'

run: ## Start the containers
docker network create vero-network || true
U_ID=${UID} docker-compose up -d

stop: ## Stop the containers
U_ID=${UID} docker-compose stop

restart: ## Restart the containers
$(MAKE) stop && $(MAKE) run

build: ## Rebuilds all the containers
U_ID=${UID} docker-compose build

prepare: ## Runs backend commands
$(MAKE) composer-install

# Backend commands
composer-install: ## Installs composer dependencies
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} composer install --no-scripts --no-interaction --optimize-autoloader

migrations: ## Runs the migrations
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} bin/console doctrine:migrations:migrate -n

be-logs: ## Tails the Symfony dev log
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} tail -f var/log/dev.log
# End backend commands

ssh-be: ## ssh's into the be container
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} bash

code-style: ## Runs php-cs to fix code styling following Symfony rules
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} php-cs-fixer fix src --rules=@Symfony

generate-ssh-keys: ## Generar los ssh keys de JWT library
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} mkdir -p config/jwt
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} openssl genrsa -passout pass:21023c10e2208b4d3a4a279ea0bf5ee6 -out config/jwt/private.pem -aes256 4096
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} openssl rsa -pubout -passin pass:21023c10e2208b4d3a4a279ea0bf5ee6 -in config/jwt/private.pem -out config/jwt/public.pem

clear-cache: ## ejecuta cache:clear
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} php bin/console cache:clear

assets-install: ## ejecuta assets:install en docker
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} php bin/console assets:install --symlink public

yarn-encore: ## ejecuta yarn encore
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} yarn encore dev

yarn-install: ## install yarn dependencies
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} yarn install
86 changes: 86 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# What is MyProduct?

{% hint style="info" %}
Expand Down Expand Up @@ -69,3 +70,88 @@ Learn the fundamentals of MyProduct to get a deeper understanding of our main fe
{% hint style="info" %}
**Good to know:** Splitting your product into fundamental concepts, objects, or areas can be a great way to let readers deep dive into the concepts that matter most to them. Combine guides with this approach to 'fundamentals' and you're well on your way to great documentation!
{% endhint %}
=======
## Bienvenido a AlamedaCMS

Cms básico, basado en Symfony para entornos con acceso ssh y pleno control del server (ej. VPS), incluye reservas ([payunpile][6]) y enlaces ([incalinks][7])


### ¿Que resuelve?
Tener CMS basado en estándares modernos, donde pueda tener pleno control del código, y con un [framework][1] líder en PHP como lo es [Symfony][1]
Fácil de actualizar, fácil de mantener, con un árbol de directorios claro.

### ¿Qué más tiene?

Tiene un manejo básico de usuarios para la administración de los contenidos.
Permite la creación de reservas para eventos, basado en (PayunPILE)[6].
Permite la creación de sus propios enlaces cortos, cuando dependa de vínculos de terceros. [IncaLINKS][7]

### ¿Cómo lo obtengo?

Para usar AlamedaCMS debes bajarlo de [github][8], y luego bajar sus dependencias de paquetes.

```
git clone https://github.com/gerMdz/AlamedaCMS.git
cd project
composer install
yarn install
```


Requerimientos
------------

* PHP 7.2.9 o superior;
* PDO-SQLite PHP extension enabled (o el PDO para tu base de datos);
* y los [usuales requerimientos de una aplicación Symfony][2].

Uso
-----

Las configuraciones básicas son
* la URL de su base de datos ej.:
* DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7
* el DSN de su servidor smtp de correos
* MAILER_DSN=smtp://localhost

Luego con el binario de [Symfony][4], ejecute los siguientes comandos que crearan los datos básicos de usuarios y un contenido de inicio:

```bash
$ php bin/console doctrine:fixtures:load
$ symfony serve -d
```

Luego acceda a la aplicación en su navegador con la URL dada (<https://localhost:8000> generalmente).

Si no tiene instalado el binario de Symfony, ejecute `php -S localhost:8000 -t public/`
para utilizar el servidor web PHP incorporado o [configure un servidor web][3] como Nginx o
Apache para ejecutar la aplicación.

Tests
-----

Ejecute este comando para correr los tests:

```bash
$ ./bin/phpunit
```


#### AlamedaCMS se base en
- [Symfony][1] framework PHP.
- [Bootstrap](https://getbootstrap.com/) plantillas.
- [FontAwesome](https://fortawesome.github.io/Font-Awesome/) icons.

Con licencia [MIT](https://github.com/gerMdz/AlamedaCMS/blob/AlamedaCMS/LICENSE)
Uso [PhpStorm][5]


[1]: https://symfony.com
[2]: https://symfony.com/doc/current/reference/requirements.html
[3]: https://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html
[4]: https://symfony.com/download
[5]: https://jb.gg/OpenSource.
[6]: https://github.com/gerMdz/payunpile
[7]: https://germdz.github.io/incalinks/
[8]: https://github.com/gerMdz/AlamedaCMS.git

Loading

0 comments on commit b3c576a

Please sign in to comment.