0.0.1 • Published 5 years ago

cvmodulewebb v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

CvmoduleWebb

Install

npm install --save cvmodulewebb

how to use

  1. Import component into your application.
import CvApplication from 'cvmodulewebb'
  1. 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

  1. link package.json in Startkraft-Webb to the directory of cvmodulewebb.
  "dependencies": {
    .....
    "cvmodulewebb": "file: ../../../../cvmodulewebb",
  }
  1. 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
  1. You need to have both Starkraft-Webb and cvmoduleWebb running with npm run start. When update cvmodule Startkraft-Webb will auto compile.