Go to file
2022-02-14 23:03:16 +01:00
app Add note. 2022-02-10 17:28:02 +01:00
ci_scms Added a very old Code Igniter 3 based cms implementation aswell. It's model code should be a lot more useful that the laravel based one's. 2021-10-30 18:35:25 +02:00
crystalcms_updated Added the original laravel code. 2021-10-30 18:16:05 +02:00
.clang-format Initial commit. 2021-10-30 18:14:31 +02:00
.gitignore Added .cache folder to the gitignore. 2021-11-04 11:19:18 +01:00
build.config.example Initial commit. 2021-10-30 18:14:31 +02:00
build.sh Initial commit. 2021-10-30 18:14:31 +02:00
HEADS Updated the engine. 2022-02-14 23:03:16 +01:00
LICENSE Initial commit. 2021-10-30 18:14:31 +02:00
main.cpp Updated the engine. 2022-02-05 23:18:25 +01:00
migrate.sh Initial commit. 2021-10-30 18:14:31 +02:00
Readme.md Small readme update. 2021-10-30 18:18:25 +02:00
run.sh Initial commit. 2021-10-30 18:14:31 +02:00
SConstruct Cleanups and notes to the page manager. Also added the new classes into the build. 2022-01-13 14:10:32 +01:00

CrystalCMS

An old CMS of mine that was originally written for/in laravel now ported to (rcpp_framework)[https://github.com/Relintai/rcpp_framework].

This is highly experimental stuff. It probably shouldn't be used by anyone who's sane.

Note: this readme has been taken from an another project of mine, it will be updated later.

Compilation

Will only work on linux! Works on the rasberry pi.

Dependencies

Arch/Manjaro:

pacman -S --needed scons pkgconf gcc yasm 

Debian/Raspian:

sudo apt-get install build-essential scons pkg-config libudev-dev yasm 

Optionally if you install MariaDB/MySQL and/or PostgreSQL the compile system should pick it up. Make sure to get a version whoch contains the development headers (A bunch of .h files).

Initial setup

clone this repo, then call scons, it will clone rcpp cms into a new engine directory. Run this every time you update the project. You don't have to run it before / between builds.

# git clone https://github.com/Relintai/crystal_cms.git crystal_cms
# cd crystal_cms
# scons

Now you can build the project like: scons bl. ([b]uild [l]inux)

Adding -jX to the build command will run the build on that many threads. Like: scons bl -j4.

# scons bl -j4
- or -
# ./build.sh

Now you can run it.

First run migrations, this will create the necessary database tables:

# ./engine/bin/server m
- or -
# ./migrate.sh

Now you can start the server:

# ./engine/bin/server
- or -
# ./run.sh

Make sure to run it from the project's directory, as it needs data files.

Now just open http://127.0.0.1:8080

You can push floats to the "a/b" MQTT topics, and the new values will be save in the database.sqlite file, and will appear in your browser.

Structure

The main Application implementation is app/ic_application.h.

The main.cpp contains the initialization code for the framework.

The content/www folder is the wwwroot.