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
- Host: GitHub
- URL: https://github.com/flonkler/trivialis
- Owner: flonkler
- License: mit
- Created: 2019-12-05T17:28:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T06:19:44.000Z (about 5 years ago)
- Last Synced: 2025-07-05T06:11:33.957Z (12 months ago)
- Topics: api, cms, mysql, php, vuejs
- Language: Vue
- Size: 293 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)