Code Monkey home page Code Monkey logo

42_webserv's Introduction

Webserv

Overview

The project was coded by dgerwig and ngasco in C++ (98 standard).

Quoting from the project's subject:

This project is about writing your ow HTTP server. You will be able to test it with an actual browser. HTTP is one of the most used protocols on the internet. Knowing its arcane will be useful, even if you won’t be working on a website.

The server is able to render a static website where users can upload, see, and delete pictures:

Webserv.-.11.June.2023.mp4

Features

  • Supports GET, HEAD, POST, and DELETE requests
  • Accepts a configuration file (loosely inspired by nginx) to customize:
    • ports
    • server name
    • 404 error template
    • autoindex on (index template is shown for each route) or off (content of each route is shown instead)
    • maximum body size on POST request
    • accepted methods for each route, e.g. to protect a route from deletion
    • index template for each route
    • alternative name for routes
    • redirection to another template
  • Supports Python and Shell scripts for custom actions like:
    • rendering a Gallery page that adapts to the pictures stored on the server
    • uploading pictures using Python's CGI API
    • rendering a template with the content of a specific route
  • Supports both regular and chunked requests

Run

You can run the server with the default configuration file, by simply running:

make run

42_webserv's People

Contributors

nicolasgasco avatar diegogerwig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.