Skip to content

cmsrs/cmsrs3-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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