Skip to content

Commit

Permalink
INSTALLATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Akilan1999 committed May 29, 2019
1 parent 99be97a commit e6c34c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
2. NPM
3. MySQL

### 2. Clone the repo
## 2. Clone the repo
```bash
git clone https://github.com/Akilan1999/Centralized_IOE.git
```
Navigate to the directory
```bash
cd Centralized_IOE/
```
### 3. Add your sql username and password
## 3. Add your sql username and password

Navigate to config/database.js
```javascript
Expand All @@ -25,7 +25,7 @@ var connection = mysql.createConnection({
});
```

### 4. Adding the sql database to your localhost
## 4. Adding the sql database to your localhost

1. Login to SQL
```bash
Expand All @@ -47,19 +47,19 @@ Ex: This is for adding batteries
mysql> insert into battery_info values(0,2,'POWERWALL 1','Solar City',500,300);
mysql> insert into battery_info(user_id,model_no, manufacturing_company,Storage,Current_power) values(2,'POWERWALL 2','Solar City',500,500);
```
### 5. Start server
## 5. Start server
```sql
node app.js
```
URL: http://localhost:8003

### 6. Login with the username and password in the DB.
## 6. Login with the username and password in the DB.

If successful this should be your home page

<img src="./public/images/screenshot/homepage.png" width="1000" height="500">

### 7. SQL Er-Diagram
## 7. SQL Er-Diagram
Note : The password is not hashed.
<br>
<br>
Expand Down

0 comments on commit e6c34c6

Please sign in to comment.