aboutsummaryrefslogtreecommitdiff
path: root/00_hello_world
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x00_hello_world/build.sh4
-rw-r--r--00_hello_world/hello.c5
-rwxr-xr-x00_hello_world/run-node.sh3
-rwxr-xr-x00_hello_world/run-server.sh3
4 files changed, 15 insertions, 0 deletions
diff --git a/00_hello_world/build.sh b/00_hello_world/build.sh
new file mode 100755
index 0000000..9b6b576
--- /dev/null
+++ b/00_hello_world/build.sh
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3mkdir -p build
4emcc -o build/index.html hello.c
diff --git a/00_hello_world/hello.c b/00_hello_world/hello.c
new file mode 100644
index 0000000..66e36aa
--- /dev/null
+++ b/00_hello_world/hello.c
@@ -0,0 +1,5 @@
1#include <stdio.h>
2
3int main() {
4 printf("Hello, web!\n");
5}
diff --git a/00_hello_world/run-node.sh b/00_hello_world/run-node.sh
new file mode 100755
index 0000000..3fdf61e
--- /dev/null
+++ b/00_hello_world/run-node.sh
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3node build/index.js
diff --git a/00_hello_world/run-server.sh b/00_hello_world/run-server.sh
new file mode 100755
index 0000000..c0087d4
--- /dev/null
+++ b/00_hello_world/run-server.sh
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3darkhttpd build

Generated with cgit - Back to sebastiano.tronto.net