Code Monkey home page Code Monkey logo

brainfuck-website's Introduction

this is a simple website. it is powered by node.js, but mainly brainfuck. how can you write a website using brainfuck, you ask? well, there's two parts to it:

the server

the server lives in server.js. its a basic node.js tcp server that does nothing but listen for requests. upon a request, it loads and interprets the brainfuck code from server.bf and serves that as a http response.

#### the http response

this is the main part of the site. it lives in server.bf. all it does it construct a http reponse based on the first line of the request (usually looks like GET /something). if it's not GET or if it doesn't point to /, it constructs a 404 response. if everything is ok, though, it returns 200 OK with the site's html content.

i had to keep the html minimal because otherwise it would've been an absolute nightmare to implement it in brainfuck (honestly, even now it is).

installation

  1. clone this repository
  2. run npm install
  3. run npm start and visit http://localhost:3000

license

licensed under the MIT license. do whatever you want with it, just credit this. see LICENSE.

brainfuck-website's People

Contributors

internetztube avatar

Stargazers

Timo Sarkar avatar  avatar

Watchers

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