Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 2.83 KB

README.md

File metadata and controls

62 lines (45 loc) · 2.83 KB

####How to setup the Dashboard development environment

  • Install go-lang https://golang.org/

  • Make sure you have set GOPATH variable. (This variable must not point to the project folder)

  • checkout the source code available at https://[email protected]/apremalal/wifi-manager.git

  • Execute wifi-manager/build.sh

    • This will create a distribution pack (wifi-manager.zip)
  • Installing the DataBase

    • Create a database with name ‘dashboard’
    • Update the wifi-manager/server/resources/scripts/setup_config.sh with your mysql server configurations
    • Execute wifi-manager/server/resources/scripts/setup.sh
  • Default configuration files are config.default.yaml and redis.default.conf, to change and override the defaults, simply create new files config.yaml and redis.conf respectively and have your preferred configs. Do not change the default configuration files.

  • To run the server execute wifi-manager/server/server.sh

  • To run the server in daemon mode run server.sh start

  • Point your browser to https://localhost:8081/dashboard/

  • Username : [email protected] Password: admin

Binary installation guide for linux x64 based systems

  1. Download and extract wifi-manager.zip in to a desired location

  2. Create 3 databsaes with name dashboard, summary, portal Note : if you wish to use a dummy data set to test the system, ignore step 3 & 4 and follo instructions (Only for dummy dataset)

  3. Update the database conection configurations in wifi-manager/resources/scripts/setup_configs.sh

  4. Execute wifi-manager/resources/scripts/setup.sh - This will instal the initial database

Only for dummy dataset.

  • Extract dummy data files (portal.sql.zip, summary.sql.zip, dashboard.sql.zip) in wifi-manager/sql/dummydata folder.
  • Import each dummy data set by sourcing the data file Ex : mysql> USER portal; mysql> source portal.sql;
  1. Update the databse configurations in wifi-manager/configs/congifs.yaml
  2. Start the server by running wifi-manager/bin/server.sh start

Adding a dummy data set

  • A dummy data set is located under wifi-manager/server/resources/sql/dummydata folder
  1. unzip portaldump.sql.zip and source the file to portal database

source portaldump.sql

  1. unzip sumarydump.sql.zip and source the file to portal database

source sumarydump.sql

IDE support for go-lang

Git & BitBucket

Configure Redis

  • Redis[1] is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker. This app use redis primarily as a JWT token storage.
  • This distribution contains an embedded redis instance compiled for Ubuntu 14.04 LTS. You have to replace thse redis-server with the matching redis server for the OS.

[1] http://redis.io/