Skip to content

Commit c038c2f

Browse files
committed
starter-template
0 parents  commit c038c2f

10 files changed

Lines changed: 478 additions & 0 deletions

File tree

.DS_Store

6 KB
Binary file not shown.

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PUSHER_APP_ID=your-app-id
2+
PUSHER_APP_KEY=your-app-key
3+
PUSHER_APP_SECRET=your-app-secret
4+
PUSHER_APP_CLUSTER=your-app-cluster

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.env

package-lock.json

Lines changed: 320 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "delivery-app-functions-tutorial",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"dependencies": {
10+
"dotenv": "^16.3.1",
11+
"pusher": "^5.1.3"
12+
},
13+
"keywords": [],
14+
"author": "",
15+
"license": "ISC"
16+
}

src/data.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const LOCATION_PEERDENSTRAAT = {
2+
latitude: 51.199751,
3+
longitude: 3.243603,
4+
};
5+
6+
const LOCATION_DHOORESTRAAT = {
7+
latitude: 51.200461,
8+
longitude: 3.242217,
9+
};
10+
11+
const LOCATION_DAVERLOSTRAAT = {
12+
latitude: 51.200545,
13+
longitude: 3.237858,
14+
};
15+
16+
module.exports = {
17+
LOCATION_PEERDENSTRAAT,
18+
LOCATION_DHOORESTRAAT,
19+
LOCATION_DAVERLOSTRAAT,
20+
};

src/frontend/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Delivery Location Status Update | Pusher Functions Tutorials</title>
8+
<link rel="stylesheet" href="style.css" />
9+
</head>
10+
11+
<body>
12+
<div class="container">
13+
<h2>Delivery Location Status Update</h2>
14+
<div class="messages"></div>
15+
</div>
16+
17+
<script src="https://js.pusher.com/7.2/pusher.min.js"></script>
18+
<script src="index.js"></script>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)