File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
tutorials/building_a_simple_web_blog_with_vweb Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- ## Building a 150 KB web blog in V & SQLite
1
+ ## Building a 400 KB web blog in V & SQLite
2
2
3
3
Hello,
4
4
@@ -409,6 +409,18 @@ If the database file doesn't exist it will create it. The second command will
409
409
create the table ` Article ` if none exists already. Now every time the
410
410
app is run you will see the articles created from the previous executions
411
411
412
- To be continued...
412
+ ### Building the blog
413
+
414
+ Run
415
+
416
+ ``` bash
417
+ v -d use_openssl -o blog -prod . && strip ./blog
418
+ ```
419
+
420
+ This will result in a ~ 400KB binary. ` -d use_openssl ` tells vweb to link to OpenSSL. Without this flag mbedtls will be embedded, and the
421
+ binary size will increase to ~ 700KB.
422
+
423
+
424
+ ### To be continued...
413
425
414
426
For an example of a more sophisticated web app written in V, check out Vorum: https://github.com/vlang/vorum
You can’t perform that action at this time.
0 commit comments