A web system for controlling the production and consumption of electricity on a smaller scaled market including a simulator.
Project is created with:
- Node.js version: 13.0.1
- HTML version: 5
- MySQL version: 5.7.28
Requirements: Node.js 13.0.1
Setup database:
$ mysql -u root -p
$ SOURCE {pathway to project}/database/createdb.sql;
$ SOURCE {pathway to project}/database/createtable.sql;
$ SOURCE {pathway to project}/database/createdblogin.sql;
$ SOURCE {pathway to project}/database/createtablelogin.sql;
$ exit;
Run project:
$ git clone https://github.com/drakcir97/M7011E.git
$ npm install
$ cd M7011E
$ cd simulator
$ forever start simulator.js
$ cd ../restful-api
$ forever start index.js
$ cd ../server
$ forever start index.js
To make changes to the system, see the folder named 'config'.
- apiconfig.js is the config for the API
- html.conf is config for html
- serverconfig.js changes the server
- simulatorconfig.js is for the simulator
To create an administrator:
- Go to https://(your configured ip):3000/createadmin
- Log into the default administrator using normal sign in (username: sysadmin@miri, password: sysadmin)