![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | api/ | 2 years ago | - | |
![]() | build/ | 2 years ago | - | |
![]() | components/ | 2 years ago | - | |
![]() | config/ | 2 years ago | - | |
![]() | extensions/ | 2 years ago | - | |
![]() | node_modules/ | 2 years ago | - | |
![]() | public/ | 2 years ago | - | |
![]() | README.md | 2 years ago | 8.2K | 8aefd5a3 remove w139 instruction [كارل مبارك] |
![]() | favicon.ico | 2 years ago | 3.6K | 8aefd5a3 remove w139 instruction [كارل مبارك] |
![]() | package-lock.json | 2 years ago | 669K | cda2ae90 remove excess strapi logging [كارل مبارك] |
![]() | package.json | 2 years ago | 1.0K | 34b7a894 force node version 12.18.4 in package [كارل مبارك] |
![]() | yarn.lock | 2 years ago | 425K | 34b7a894 force node version 12.18.4 in package [كارل مبارك] |
For the content management system (CMS), we are using Strapi .
The CMS is accessible at https://api.melt.karls.computer.
The CMS is hosted on this server which is provided by Greenhost. For now, I have dedicated 2GB of storage for this. If you would like more storage, please let me know.
There are two types of users on Strapi: admin and author/editor. As admin, I can create content types, update the infrastructure, change the API, and create and delete users. As author/editor, you can upload files, create content, edit it, publish it, unpublish it and delete it.
You will recieve a link from me that will direct you to a page where you can authenticate your user. Please store your credentials.
Once authenticated, you will be presented with the content management environment. On the top right, there are the buttons to log out and change the interface language. On the left side, there is a navigation menu with all the collections and single types (more info below). The rest of the interface is the editing area. It changes based on the part of the navigation that you are in.
In Strapi, Single Types are only one entry.
In this project, the 5 "quadrants" of the website are each handled by a single type:
┌──────────┐
│meditation │
│ │
│ │
│ │
┌──────────┼──────────┼──────────┐
│ice │map │lecture │
│ │ │ │
│ │ │ │
│ │ │ │
└──────────┼──────────┼──────────┘
│colophon │
│ │
│ │
│ │
└──────────┘
In each of these entries, you will have at least the following 4 fields:
Each of the quadrants will have some of their own unique fields:
In Strapi, Collections contain many entries. When viewing a collection, you can view, filter, sort, search, create, edit, publish, unpublish or delete an entry.
Any data-type in the project that can be enumerated is handled as a collection:
These are the time snippets that go in the Map quadrant. The fields Keyword, slug, Audio, and Captions are mostly self-explanatory. More complex fields:
These are the anchors on the map to which the time snippets attach themselves. When an anchor is "activated" its related time snippets would become visible/audible. The fields Name, slug, X, and Y are similar to the fields in the Time Snippets collection.
This data-type is still in development but we can think together what other fields to include.
All entries have different fields. Most of them are self-explanatory.
Some fields support rich text and are edited in Markdown. There is a built-in editor for rich text fields that will provide all the formatting options as buttons. When you select text and click the 'Bold' button, it will create the syntax that will make that text bold. To see how a rich text is going to be formatted on the website, you can click the Switch to Preview button on the upper right corner of the rich text editors.
Markdown cheat sheet: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet/.
When you want to include an image in a rich text, you can click the image icon on the editor and either choose a previously uploaded image, or upload a new one. This will paste a URL to the image in the text. You can see this in action on the entries that are already there.
Please upload as many files as you like. The upload limit is set to 400mb per file at the moment.
Please note the following about links: all aboslute links (starting with "http...") will open in a new tab when clicked in the website. All relative links (starting with "/...") will use the website's custom router to scroll to the different part of the canvas.
So if you want to link from one part of the website to another, and you are using the rich text editor, please use relative links based on the slugs from other fields, and format them as follows:
[Internal Link](/slug) <!-- internal link template -->
[Go to Meditation!](/meditation) <!-- internal link example -->
[External Link](https://domain.org) <!-- external link template -->
[Visit our site!](http://meltionary.com/) <!-- external link example -->
(for karl)
First,
npm install
Then,
npm run develop
Here, you can make changes to the API, add and remove extensions, change user roles, etc... Please note, removing a property from an object could delete all the entries from the database for that object.
Then stage, commit and push your changes to the remote server.
Strapi is running on http://localhost:1342 and proxied to https://api.melt.karls.computer.
The initial set up starts with the build command:
NODE_ENV=production npm run build
Then,
pm2 start "NODE_ENV=production npm run start" --name "API.MELT"
We are using pm2
to manage the service.
If changes have been made and pushed to the server, re-build the admin interface if necessary, and then restart the process:
pm2 restart API.MELT