aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
blob: df0c061b344f97c6905c9a4708dfbc2229b4741e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This is the main executable file.
//! Here we will add all cli interfaces
//! to interact with the state of the application
//! but also the actual running of the server / webapp.

const std = @import("std");
const http = @import("http");

pub fn main(init: std.process.Init) !void {
    var server: http.Server = try .init(init.gpa, try .parseLiteral("127.0.0.1:8080"));
    try server.serve();
}

test {
    _ = std.testing.refAllDecls(@This());
}