Skip to content
wireme user dashboard in react.
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src
.babelrc
.bowerrc
.gitignore
bower.json
package.json
pm2_process.json
readme.md
webpack.config.js
webpack.config.production.js

readme.md

wireme dashboard

development

dependencies

sudo npm install -g babel-cli webpack babel-core bower

running

npm install
bower install
npm start
# run this on another terminal tab
webpack --watch --progress

run webpack command in another terminal in order to watch for changes.

visit http://localhost:3000.

meta tags

server side rendering is not fully implemented yet (see SSR branch). so till then meta tags are handled by server.js after defining a new route in react router, add meta tags as follows in server.js.

switch (reqPath) {
    ...
    case '/quickstart':
        og= new OG("wireme - quick start", "http://wireme.projects.mrt.ac.lk/images/tutorial/quickstart/dashboard_on_tab.jpg", "quick start guide for wireme IoT platform");
        metaHTML = og.generateMeta();
        break;
}

mqtt details:

host: wireme.projects.mrt.ac.lk: 8883
user: test
pass: test123

production

  • you should have installed and configured PM2 to auto start.
  • bind nodejs to run on port 80.

follow below steps

# keep environment on development mode when running these
npm run build-server
webpack -p --config webpack.config.production.js --progress
pm2 start pm2_process.json
You can’t perform that action at this time.