@opengis/cms
v0.0.79
Published
cms
Maintainers
Keywords
Readme
@opengis/cms
This package standardizes static website content management process. Built using the Fastify and Vite frameworks for reactive, component-driven development.
Features
- Real-time Editing - Update content without stopping or reloading the website.
- Page Templates - Use pre-created templates to quickly start your website.
- Dashboard - Control panel for quick evaluation of key metrics.
- Multi-user mode - Work together with a team on content in real time.
- User Settings - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
Install
npm i @opengis/cmsUsage Astro
---
import Layout from "@/layouts/Layout.astro";
// get posts
import { getContents } from "@/utils/cms";
const postsData = await getContents({ collection: "posts"});
const { lang } = Astro.params;
---
<Layout
title={lang === "uk" ? "Про нас" : "About us"}
>
{ postsData }
</Layout>Usage CMS
// main.ts
app.config.globalProperties.$settings = {
cms: {
locale: 'uk', // мова сайту по замовчуванню
locales: ['uk', 'en'], // доступні варіанти перекладу
previewUrl: 'http://site.ua' // адреса перегляду контенту з редактора
}
};// router.config
export default [
{
path: '/cms.dashboard',
component: () => import('@opengis/cms').then(el => el.Dashboard),
},
{
path: '/collections/:type?/:id?',
component: () => import('@opengis/cms').then(el => el.Content),
},
{
path: '/menu/:id?',
component: () => import('@opengis/cms').then(el => el.Menu),
},
]Start
Configure pg, redis and s3 connections in .env file
node --env-file=.env.ip server
bun --env-file=.env.ip server
pm2 start server --name api -- --env-file=.env.ipDocumentation
For a detailed understanding of cms, its features, and how to use them, refer to our Documentation.
Technology stack
Contribute
Feel free to contact us through our website SOFTPRO.UA or email [email protected]
- Report bugs
- Share your ideas
- Ask questions
Follow Us
License
Copyright © SOFTPRO. All rights reserved.
