An open API service indexing awesome lists of open source software.

https://github.com/flonkler/trivialis

Super simple and lightweight Content Management System using PHP and MySQL
https://github.com/flonkler/trivialis

api cms mysql php vuejs

Last synced: 2 months ago
JSON representation

Super simple and lightweight Content Management System using PHP and MySQL

Awesome Lists containing this project

README

          

# trivialis

💀 **INACTIVE PROJECT** 💀

Super simple and lightweight Content Management System especially designed for single page websites.

Trivialis features a modern and straight-forward frontend and a robust backend API, that can also be accessed programmatically.

## Installation

For installing PHP dependencies, it is recommended to use `composer` by running the following command in the `dist/` directory:

``` sh
composer install
```

Future versions will contain an autoinstall script that will install dependencies and initiate databases automatically.

## Development

This repository provides a `docker-compose.yml` configuration for running the required backend servers without installing them on your local machine. When running `docker-compose up`, three containers will be created. One container will provide an Apache 2 server that serves and executes the backend PHP scripts. The other two containers run a MySQL database server and phpMyAdmin for database management.

**Important:**
The `dist` directory will be mounted into the `www` container. In order for a PHP script to write a file into a directory, it is important that the `www-data` user inside the container must have the same UID as the user of the host machine. Therefore it is recommended to build the `www` using the following command (if no build argument is set, a default value of 1000 will be used).

``` sh
docker-compose build --build-arg uid=$(id -u) www
```

The `parcel` bundler is used for bundling the frontend (HTML, Javascript, Vue components, SCSS, etc.). For development you can run `yarn watch` for re-building the frontend whenever the source is changed (Hot Module Reloading is disabled, so you have to reload the page)