@lexho111/plainblog 0.8.3 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,16 +27,15 @@ Now you can open your blog in your webbrowser on `http://localhost:8080`. Login
|
|
|
27
27
|
or with the BlogBuilder
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
+
import { BlogBuilder } from "@lexho111/plainblog";
|
|
31
|
+
|
|
30
32
|
const blog = new BlogBuilder()
|
|
31
33
|
.withTitle("Mein Blog")
|
|
32
34
|
.withStyle("body { font-family: Arial, sans-serif; } h1 { color: #333; }")
|
|
33
35
|
.withPassword("mypassword")
|
|
34
|
-
.withDatabase(adapter)
|
|
35
36
|
.build();
|
|
36
|
-
|
|
37
37
|
await blog.init();
|
|
38
|
-
|
|
39
|
-
await blog.startServer({ httpPort: 38080 });
|
|
38
|
+
await blog.startServer({ httpPort: 38080, httpsPort: 38443 });
|
|
40
39
|
```
|
|
41
40
|
|
|
42
41
|
## More Features
|
|
@@ -50,8 +49,10 @@ To add a headerphoto to your blog simply name it "headerphoto.jpg" and put it in
|
|
|
50
49
|
You can put your own angular theme in the public folder.
|
|
51
50
|
|
|
52
51
|
```
|
|
52
|
+
const blog = new BlogBuilder()
|
|
53
53
|
...
|
|
54
|
-
|
|
54
|
+
.withFrontend("angular")
|
|
55
|
+
.build();
|
|
55
56
|
```
|
|
56
57
|
|
|
57
58
|
### set a Database Adapter
|
|
@@ -89,7 +90,7 @@ await blog.init();
|
|
|
89
90
|
await blog.startServer();
|
|
90
91
|
```
|
|
91
92
|
|
|
92
|
-
### use
|
|
93
|
+
### use different ports
|
|
93
94
|
|
|
94
95
|
```
|
|
95
96
|
import Blog from "@lexho111/plainblog";
|