This project demonstrates a simple web server using the Crow C++ framework. The server serves an HTML page along with associated CSS and JavaScript files.
- C++ compiler with at least C++11 support (e.g.,
g++
) - Asio development headers (1.10.9 or later)
- Crow framework
- Clone the repository:
git clone https://github.com/bikundkumar/TO-DO-List.git
- Ensure you have the Crow framework header file (
crow_all.h
) and Asio development headers in the project directory.
-
Compile the project:
g++ -I. to-do.cpp -lpthread && ./a.out
-
Run the server:
./a.out
-
Open your browser and navigate to
http://localhost:18080
to view the served HTML page.
/
: Serves the main HTML page (fancypage.html
)./style.css
: Serves the CSS file (templates/style.css
)./script.js
: Serves the JavaScript file (templates/script.js
).
- Crow - Fast and easy to use C++ microframework
This project is licensed under the MIT License. See the LICENSE file for details.