niweb21 / blog4fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog4Fun

A personnal personnal project just for fun

What's inside?

A small blog motor:

  • Edit and publish markdown content

Technologies

  • Symfony 3.2

  • PHP7

  • MongoDB 3.4

TODO

[x] Dockerize the environment [x] Clean up useless Symfony dependencies [ ] Add MongoDb support [ ] Init tests [ ] Add front routes [ ] Add Backend routes [ ] Add templates

Docker

Lunch the containers

docker-compose up -d

Down and rebuild

docker-compose down && docker-compose rm && docker-compose build

Connect

docker exec -it blog4fun_web_1 /bin/bash
docker exec -it blog4fun_db_1 /bin/bash

Tips

Run your composer and symfony command command in the web container

docker exec -it -u 1000 blog4fun_web_1 php composer.phar install --prefer-dist -a
docker exec -it -u 1000 blog4fun_web_1 php bin/console cache:clear

Docker

You have to create a mongo user :

docker exec -it blog4fun_db_1 mongo admin
db.createUser({ user: 'blog4fun', pwd: 'blog4fun_pwd', roles: [ { role: "readWrite", db: "blog4fun" } ] });

About

License:MIT License


Languages

Language:PHP 88.8%Language:HTML 6.5%Language:ApacheConf 4.7%