Skip to content

Commit 57c76c5

Browse files
committed
add README.md
1 parent 7177029 commit 57c76c5

File tree

4 files changed

+54
-26
lines changed

4 files changed

+54
-26
lines changed

Readme.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
`waterConsumption` is a web based application to monitor your water consumption.
2+
3+
# Features
4+
5+
- visualize your water consumption over time
6+
- add a new reading as indicated from your water meter
7+
- edit a reading
8+
9+
# Screenshots
10+
11+
<img src='./doc/screenshot.png' width="400px" style="margin:auto; display:block"/>
12+
13+
# From a technical POV
14+
15+
This project has a server/client architecture.
16+
17+
The backend is simple: a REST API, data stored in a plain csv file.
18+
19+
The frontend is currently simple just html, javascript. No use of a framework yet, but as the project grows and more features are needed, I think it will be easier to flip to react.js
20+
21+
# Requirements
22+
23+
- nodejs
24+
25+
# Installation
26+
27+
Install the dependencies of the project:
28+
29+
```
30+
npm install
31+
```
32+
33+
You can start the server with:
34+
35+
```
36+
node ./server.js
37+
```
38+
39+
With your browser, type the following in the address bar:
40+
41+
```
42+
http://localhost:1234/public/index.html
43+
```

consumption.csv

+6-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
date;m3
22
2020-12-18;100
3-
2020-12-20;123
4-
2020-12-25;222
5-
2020-12-26;300
6-
2020-12-10;50
7-
2020-12-24;250
8-
2020-12-23;300
9-
2020-12-22;400
10-
2020-12-11;500
11-
2020-12-31;600
12-
2020-12-01;20
13-
2020-12-02;123
14-
2020-12-03;300
15-
2020-12-04;300
16-
2020-12-05;400
17-
2020-12-05;500
18-
2020-12-06;456
19-
2020-12-07;666
20-
2020-11-02;444
21-
2020-11-03;132
22-
2020-11-04;500
23-
2020-11-05;100
24-
2020-11-06;900
25-
2020-11-11;300
26-
2020-11-20;500
27-
2020-11-23;1000
3+
2020-12-20;110
4+
2020-12-25;150
5+
2020-12-26;160
6+
2020-12-27;165
7+
2020-12-28;170
8+
2020-12-31;200

doc/screenshot.png

28.5 KB
Loading

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"name": "consumptionchecker",
2+
"name": "waterConsumption",
3+
"author": {
4+
"name": "Max-Z80",
5+
"email": "chaillet.dev@gmail.com"
6+
},
37
"version": "0.1.0",
48
"private": true,
59
"dependencies": {

0 commit comments

Comments
 (0)