TextCMS is a personal project aimed at providing a customizable text content management system (CMS) consisting of three main components: With TextCMS

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-04-22 09:00:05

TextCMS is a personal project aimed at providing a customizable text content management system (CMS) consisting of three main components:

With TextCMS, users can create text files within the system. Every file consists of one or more variations. Every variation has a condition attached to it. When a user requests a file, they send data in the body of a POST request. The server then compares the sent data against conditions for each variation and selects the most appropriate one to send back to the user. It can be useful in cases where different clients need to consume the same text but they have different styling/markdown systems (for example HTML/CSS vs mobile apps)

When running the compose for the first time it will build containers and seed data in databases. So you can just access control panel on http://localhost:3000. You can create account and after login you can create new files and edit it's variations. Once file is created all it's variations together with conditions are stored in Redis database and should be accessed through api exposed by Go server. Files endpoint is prefixed with /file segment. So for example if you create file on location /Folder1/NewFile.txt to get it's content you can fire POST request (curl, wget, postman) to localtion http//localhost:3004/file/Folder1/NewFile.txt. The body of request can be any JSON. If you have different variations server will return the first one matching conditions.

Database seed contains example file called Home.txt in root directory (http://localhost:3004/file/Home.txt). You can test different variations by sending those POST reqests:

Leave a Comment