Feature #19483

FE - React - Create npm run all into the MLEB CORE project

Added by chok yee fan 9 months ago. Updated 9 months ago.

Status:ClosedStart date:16 January 2024
Priority:NormalDue date:
Assignee:chok yee fan% Done:

0%

Category:-Spent time:-
Target version:-

Description

Create package.json at mleb core project to server cc_core, cc_topnavbar and cc_auth

History

#1 Updated by chok yee fan 9 months ago

checkout this whole MLEB Core project https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-core, and run the following

1. yarn install
2. npm run all:install
3. npm run all:start
It's will serve cc_core, cc_topnavbar and cc_auth. Access path http://localhost:3000/

navigate to cc_iam project open the file App.tsx comment out <Auth> as following
return (
<AbilityContext.Provider value={ability}> {/*<Auth authProps={props.appProps}>*/}
<RouterProvider router={router} fallbackElement={<p>Loading...</p>} /> {/*</Auth>*/}
</AbilityContext.Provider>
);

refresh the page. see everything is running as expected or not.

#2 Updated by chok yee fan 9 months ago

chok: mlebcore add package.json to install cc_core, cc_topnavbar and cc_auth and serve all services with single command

https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-core/-/commit/4673d7d0b72335eed5fa740a9fc11d41a4ca5da9

#3 Updated by chok yee fan 9 months ago

  • Status changed from New to Closed

tested working fine

Also available in: Atom PDF