Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 665 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 665 Bytes

cmsRS react client

  • create server site from:

https://github.com/cmsrs/cmsrs3

  • change SERVER_URL and API_SECRET in file
src/config.js
  • MENU_VISIBLE - tabs visible in menu

example:

export const SERVER_URL = 'http://127.0.0.1:8000';
export const API_SECRET = '';
export const MENU_VISIBLE = ['pages', 'users',  'products',   'checkouts',  'contacts',  'settings'];

Directive API_SECRET should be the same as on file .env on the server site

  • install dependency
npm install
  • start app
npm start
  • build app
npm run build --path admin
cp -r build admin
cp -r admin <server_path>/public