1.0.0 • Published 5 years ago

nk-solution v1.0.0

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

Project Structure

package.json
.eslintrc.js
bower.json
.babelrc
.editorconfig
README.md

config
    libs.js
    webpack.config.js
    webpack.config.pro.js
    webpack.config.dev.js

public
    // is the page template;
    index.html
    favicon.ico

src
    App.js
    //is the JavaScript entry point.
    index.js

    //for redux
    store
        actions
        reducers

    assets
    utils
    api

    //presentational component
    components
        // UI : generic components
        UI
        // HOC components
        HOC

    /**
    * The container component is the one that carries all the logic: functions for handling state changes,
    * internal component state and so on.
    */
    containers

init

npm install

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

npm run build

Builds the app for production to the dist folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Technologies

global variable

  • classnames
  • jQuery
  • \$

third party

config : go to config/libs.js

add libraries const alias = { jQuery: path.resolve(bowerDir, 'jquery/dist/jquery.min.js'), bootstrap: path.resolve(bowerDir, 'bootstrap/scss'), };

const mapping = { jQuery: 'jQuery', \$: 'jQuery', };