mirror of https://github.com/MayMeow/meowblog
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 days ago | |
---|---|---|
.devcontainer | 6 months ago | |
.github | 4 months ago | |
bin | 8 months ago | |
config | 7 days ago | |
data | 8 months ago | |
docker | 8 months ago | |
plugins | 4 months ago | |
resources | 11 months ago | |
src | 7 days ago | |
templates | 7 days ago | |
tests | 1 month ago | |
webroot | 7 days ago | |
webroot_src | 7 days ago | |
.editorconfig | 11 months ago | |
.env.example | 7 days ago | |
.gitattributes | 11 months ago | |
.gitignore | 3 weeks ago | |
.gitlab-ci.yml | 11 months ago | |
.gitmodules | 5 months ago | |
.htaccess | 11 months ago | |
.lando.yml | 2 months ago | |
.node-version | 5 months ago | |
CODEOWNERS | 8 months ago | |
CODE_OF_CONDUCT.md | 8 months ago | |
Dockerignore | 8 months ago | |
LICENSE | 11 months ago | |
Meow-Ctl.psm1 | 6 months ago | |
README.md | 5 months ago | |
compose-dev.yml | 6 months ago | |
composer.json | 1 month ago | |
composer.lock | 7 days ago | |
create | 11 months ago | |
docker-compose.prod.yml | 5 months ago | |
index.php | 11 months ago | |
package.json | 5 months ago | |
phpcs.xml | 11 months ago | |
phpstan.neon | 4 months ago | |
phpunit.xml.dist | 11 months ago | |
phpunit.xml.dist.bak | 11 months ago | |
vite.config.js | 5 months ago | |
yarn.lock | 5 months ago |
README.md
MeowBlog
Instalation
Application inside container runs under www-data:www-data
user.
sudo chown -R www-data:www-data data/
Create security key
docker compose -f docker-compose.prod.yml run --rm app sh -c "php bin/cake.php generate_security_key"
Create Database
docker compose -f docker-compose.prod.yml run --rm app sh -c "php bin/cake.php migrations migrate"
Start Application
docker compose -f docker-compose.dev.yml up -d
More information
Development
Requirements
- Docker or Docker Desktop
- Lando
- PHP 8.1 and up
- Node
- Yarn
For backend
lando start
lando composer install
lando php bin/cake.php migrations migrate
For frontend
fnm install # to install node - optionally
yarn install
yarn build
Source codes for frontend are stored in webroot_src
, currently only styles which is slightly modified picocss.
‼️ After successfull build you need to change css path in templates/layout/default.php
. (not ideal but for now it is like it is).
Application build is located in webroot/app
.