Skip to content

drakcir97/M7011E

Repository files navigation

Table of contents

General info

A web system for controlling the production and consumption of electricity on a smaller scaled market including a simulator.

Technologies

Project is created with:

  • Node.js version: 13.0.1
  • HTML version: 5
  • MySQL version: 5.7.28

Installation and use

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

Config

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

Administrator

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published