Giter Site home page Giter Site logo

tungsten's Introduction

Tungsten

A simple (very simple) HTTP Server

Currently supports GET and HEAD requests and;

It can serve a large range of filetypes!

Instructions

Want to Run Tungsten? OK, look below.

you need a working installation of python 3 on your computer to run tungsten

  • Download the whole repo (usually a .zip)
  • create a folder somewhere (your choice)
  • Extract the zip file into that folder
  • cd into that folder and run python runserver.py

That's it! the server can now serve files from the /serve/ folder (there's a png and an index.html (+css) to test: open http://127.0.0.1/ on a browser) [you can add more files to check]

to change the IP, PORT, index file etc -- open settings.tgs and change the fields

important: don't add extra new lines in the tgs file, don't add spaces -- the settings parser will panic

(PS: Tungsten is far far away from a usable production server. Educational only, I made this to learn how HTTP servers work)

Thank you :)

tungsten's People

Contributors

anuragakella avatar

Watchers

James Cloos avatar  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.