Goal: see if it is possible to write web applications in C++ and keep the code simple and clean.
- NLTemplate – C++ HTML template library
- NLDatabase – a lightweight C++ wrapper for SQLite
- Mongoose as the HTTP server
Result: template-based, SQLite-backed website written in about 150 lines of C++ code, including a function for basic database schema migration.
Answer: yes, it is possible.
Is it perfect? No. It’s just a test. But I think it is at a point where somebody could take it and extend it really easily to do quite a lot with little effort.