1.0.1 • Published 7 years ago

dg-reacting v1.0.1

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

Build

Run build with a command

npm run build

You must upload these folders/files: index.html dist/ static/ examples/ (local versions of API JSON files)

Prerequisites

To test Nanit web app you need to have the following tools installed

  • Node.js min. v4.0
  • Bower
  • NPM (in most cases installs with Node.js)
  • Gulp

Navigate to project root with terminal (where package.json is located) and run

$ npm install --no-progress

Running the app

After installing everything, navigate to project root with terminal and run

$ npm start

Then you will see a message

Listening at http://localhost:3016

Navigate to localhost:3016 in your browser

Folder structure

Folder structure and workflow based on Redux framework:

  • actions
  • components
  • containers
    • ...
  • helpers
    • ...
  • reducers
    • ...
  • routes
    • index.js
  • store
    • index.js
  • index.js
  • index.html
  • package.json

API endpoint and general configuration

All project configuration including API endpoint is in webpack.config.js. Change content of ROOT constant and restart webpack server or build again. Beware that all content must be wrapped in JSON stringify method.