cvmodulewebb
v0.0.1
Published
Downloads
3
Readme
CvmoduleWebb
Install
npm install --save cvmodulewebb
how to use
- Import component into your application.
import CvApplication from 'cvmodulewebb'
- add configurations for the component
const settings = {
apiUrl: "string",
userId: "string",
basePath: "string",
userToken: "string",
history: "react-router history object"
}
<CvApplication settings={settings} text="" />
for local development
- link package.json in Startkraft-Webb to the directory of cvmodulewebb.
"dependencies": {
.....
"cvmodulewebb": "file: ../../../../cvmodulewebb",
}
- for working with the same react in local environment, you need to link the react to Startkraft-Webb, go to the directory for cvmodulewebb and type.
npm link ../Startkraft/Startkraft-Web/node_modules/react
- You need to have both Starkraft-Webb and cvmoduleWebb running with npm run start. When update cvmodule Startkraft-Webb will auto compile.