Skip to content
/ qubejs Public

Low code react framework for developing web applications/cms websites/dynamic forms with less time, less code more efficient.

License

Notifications You must be signed in to change notification settings

qubejs/qubejs

Repository files navigation

qubejs

Core framework for web, plugin, cms & nodejs server

npm npm

Demos

Issues Report

https://github.com/qubejs/qubejs

Download and Install qubejs

Install from npm

npm install @qubejs/web-react

Available Modules

At present, we officially aim to support 4 modules

  • @qubejs/ui-material-base
  • @qubejs/web-react
  • @qubejs/cms
  • @qubejs/core

CMS Server

import express from 'express';
import * as path from 'path';
import { ContentServer } from '@qubejs/cms';
import siteConfig from '../site.config';
import config from '../config/environment';
import appConfig from '../config/app-config';

const app = express();
app.use('/assets', express.static(path.join(__dirname, 'assets')));

const cmsSever = new ContentServer(
  {
    contentPath: path.resolve('./apps/server/content'),
    serverPath: '/content/*',
    rootApp: path.resolve('./apps/server'),
    internalDevPath: path.resolve('./libs/cms'),
    damAssets: path.resolve('./apps/server/dam'),
    clientLibs: path.resolve('./apps/server/clientlibs'),
    userData: () => {
      return {
        tenantCode: process.env.TENANT_CODE || 'NOT_DEFINED',
        sitekey: process.env.sitekey || 'NOT_DEFINED',
      };
    },
    appConfig,
    envConfig: config,
    mode: config.env,
    siteConfig: siteConfig,
  },
  app
);

cmsSever.init();

const port = process.env.PORT || 4602;
const server = app.listen(port, () => {
  console.log(`Listening at http://localhost:${port}/api`);
});
server.on('error', console.error);

License

This project is licensed under the terms of the MIT license.

About

Low code react framework for developing web applications/cms websites/dynamic forms with less time, less code more efficient.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published