Skip to content

Commit 63b696b

Browse files
committed
mend
1 parent 5163fa6 commit 63b696b

File tree

4 files changed

+19
-212
lines changed

4 files changed

+19
-212
lines changed

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,17 @@ The entire project was written in plain JavaScript, without the use of any JS fr
3737
#### Production side
3838
- [Bootstrap](https://github.com/twbs/bootstrap) - UI (CSS only)
3939
- [flatpickr](https://github.com/flatpickr/flatpickr) - datepickers
40-
- [loadjs](https://github.com/muicss/loadjs) - for loading Google API directly from JavaScript
40+
- [loadjs](https://github.com/muicss/loadjs) - for loading Google API directly from JavaScript
41+
42+
## Installation
43+
If you want to run it on your own computer/server:
44+
1. clone the repo
45+
2. run `npm install` in the project directory
46+
3. cd into `dist` folder and run an http server, e.g.
47+
```
48+
$ python3 -m http.server 8000
49+
```
50+
To generate the bundle.js, run webpack with:
51+
```
52+
webpack
53+
```

dist/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>PUT Calendar</title>
4+
<title>planeo</title>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

@@ -18,7 +18,7 @@
1818

1919
<div class="container">
2020
<!--Guide-->
21-
<h1>Dodawacz planu PP</h1>
21+
<h1>planeo</h1>
2222
<p>Aplikacja ułatwiająca i przyśpieszająca dodawanie planu zajęć do Kalendarza Google.</p>
2323
<ol class="mb-5">
2424
<li>Zaloguj się do swojego konta Google.</li>
@@ -272,6 +272,6 @@ <h1>Dodawacz planu PP</h1>
272272

273273
</div>
274274

275-
<script src="main.js"></script>
275+
<script src="bundle.js"></script>
276276
</body>
277277
</html>

dist/main.js

-206
This file was deleted.

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path');
22

33
module.exports = {
44
entry: './src/main.js',
5-
mode: "development",
5+
mode: 'development',
66
module: {
77
rules: [
88
{test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"}
@@ -13,7 +13,7 @@ module.exports = {
1313
ignored: /node_modules/
1414
},
1515
output: {
16-
filename: 'main.js',
16+
filename: 'bundle.js',
1717
path: path.resolve(__dirname, 'dist'),
1818
},
1919
};

0 commit comments

Comments
 (0)