Feature #19483
FE - React - Create npm run all into the MLEB CORE project
Status: | Closed | Start date: | 16 January 2024 | |
---|---|---|---|---|
Priority: | Normal | Due 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 12 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 12 months ago
chok: mlebcore add package.json to install cc_core, cc_topnavbar and cc_auth and serve all services with single command