Skip to content

Create lightning-fast APIs with the performance of C++ in seconds using DinoScale.

License

Notifications You must be signed in to change notification settings

AdityaMayukhSom/dinoscale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DinoScale

DinoScale is a lightweight and easy-to-use C++ backend web library that allows you to quickly create and deploy web applications. It's easy-to-use API for creating and managing routes, handling HTTP requests and responses, and serving files will make you create your backend faster than the speed of C++ code execution.

Features

  • Simple and easy-to-use API
  • Lightweight and fast
  • Support for GET, POST, PUT, DELETE HTTP methods
  • Support for serving static files
  • Easy to integrate with other C++ libraries

Getting Started

To get started with DinoScale, you need to download and include "dinoscale.hpp" inside the file containing main function. Once you have included DinoScale, you can use the following code snippet to create a basic server:

#include "dinoscale.hpp"

int main(){
    DinoScale::DinoScale ds = DinoScale::DinoScale();
    ds.createRoute("GET", "/", "index.html");

    // serving static files with dinoscale
    ds.createRoute("GET", "/hello", "hello.html");
    ds.createRoute("GET", "/about", "about.html");

    ds.startListening();
}

This code creates a DinoScale object, adds three routes for the HTTP GET method, and starts listening for incoming connections on the default port (6969).

To compile the code into executable, use the following command (currently only windows is supported but linux will be supported soon)

g++ -o main.exe main.cpp server.cpp -lsw2_32

Keep In Mind

This project is still in it's very early stage. The documentation provided in the readme file has not been standardized yet. Please look into the source code documentation if having trouble in usage. Documentation website coming soon.

About

Create lightning-fast APIs with the performance of C++ in seconds using DinoScale.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published