Skip to content

eesnaola/monk-blog

Repository files navigation

Monk Blog

Install

  • Clone this repository
$ git clone https://github.com/eesnaola/monk-blog
  • Install dependencies
$ composer install

Database

To create the configured database run:

php bin/console doctrine:database:create

To execute (or dump) the SQL needed to update the database schema to match the current mapping metadata

php bin/console doctrine:schema:update --force

Compiling assets

First, make sure you install Node.js and also the Yarn package manager. Then run:

yarn install

To compile for first time run:

yarn run encore dev

Configuring a Web Server

https://symfony.com/doc/current/setup/web_server_configuration.html

To use the login with auth0 it is necessary to edit the hosts file and use the alias blog.mediamonks.com

  • Entry point

http://blog.mediamonks.com/

  • Administrator sector

http://blog.mediamonks.com/admin

Fixing File Permissions

In case you have permission issues running this app with logs, cache or database run:

$ chmod -R 777 var

API Documentation

The project has a web documentation in /api/doc

http://blog.mediamonks.com/api/doc

Unit Testing

Unit test could be executed using:

$ ./bin/phpunit tests