Giter VIP home page Giter VIP logo

retro-cms's Introduction

Retro-CMS

OpenSource CMS, a simplistic retro CMS, aimed for the Retro community free of charge. Check out the roadmap!

Development environment

First clone the repository. Once cloned we have to prepare two environments.

  1. Backend
  2. Frontend

Backend

Assuming python is installed (3.9.13 or higher). Setup a virtual environment

python -m venv venv

Activate your environment

Install the requirements in your activated environment

pip install -r requirements.txt

In visual studio code, you can hit F5 with the development environment RUN: Webserver selected. Outside visual studio code, you have to set the environment variable FLASK_APP pointing to the webserver.py file.

Windows

set FLASK_APP=webserver

Unix

export FLASK_APP=webserver

Then continue

flask run

Frontend

All commands from this point on are executed inside the frontend folder

cd frontend

Make sure the frontend requirements are installed.

npm install

The frontend can be enabled with hot-reload for easy development, for a production build we use the command

npm run build

This build gets served by Flask.

For hot-reload run the next command along side the backend

npm run watch

!Important: For hot-reload to work properly; First run the frontend followed by the backend

Interfaces

If everything runs correctly, the following links should be available

Environment

For this to work correctly, you are required to make a .env file in the root of this repository. You can use the following .env file as example:

DB_USERNAME=root
DB_PASSWORD=SuperSecretPass123
DB_HOST=127.0.0.1
DB_PORT=3888
DB_SCHEMA=retro

EMULATOR_HOST=http://127.0.0.1:81

Database

WARNING: IN THE CURRENT STATUE OF THIS APPLICATION, DO NOT USE THIS ON AN EXISTING DATABASE, ONLY FRESH RETROS

Passwords are encrypted with this CMS, existing passwords will be overwritten and users will lose access to their account. Wait until migration tooling exist or start a fresh retro.

In a terminal where set FLASK_APP=webserver.py has been activated run;

flask db upgrade

which applies the required database tables and upgrades for the CMS to work

retro-cms's People

Contributors

0x78f1935 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shaptf

retro-cms's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.