Core framework for web, plugin, cms & nodejs server
- Home page: https://www.qubejs.com
- Basic demo: https://www.qubejs.com/content/en/qubejs/docs/intro
- Full list: https://www.qubejs.com/content/en/qubejs/examples
https://github.com/qubejs/qubejs
npm install @qubejs/web-react
At present, we officially aim to support 4 modules
- @qubejs/ui-material-base
- @qubejs/web-react
- @qubejs/cms
- @qubejs/core
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);
PUBLIC_URL= (blank) or deploy url "/module-name/"
API_PREFIX=prefix server for api calls
This project is licensed under the terms of the MIT license.