1
0
forked from cat/WebBase
Files
FileHoster/README.md
2025-07-02 19:11:06 +03:00

1.0 KiB

TNC File Hoster

The Night Club's very own basic image hosting web frontend.

Web Base for C++

A good starting point for web development on C++. Do implement security stuff.

upstream/main

Building

  1. To build the project you must install the header-only (a.k.a not-boost version) of ASIO.

(in debian-based systems run # apt install libasio-dev)

  1. make build/ directory inside the repo
  2. run $ cmake ..
  3. lastly run $ make

You can run ./Webserver to run the server fully.

Coing Guidelines

  • In most of my projects I have less header(h/hpp) files than implementation files(c/cpp). This is very much intentional. I implement parts of a header file for ease of reading. You are expected to NOT make 1 header per 1 implementation file!!!

  • When doing #include if the same include is used more than once in different implementation files that share a header file. Move the #include to the header file instead of having two of the same includes.

  • Codebase must adhere to DRY and KISS (DRY KISS) principles!