Coder Social home page Coder Social logo

0marduk / testosteroneframework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thecrazyinsanity/testosteroneframework

0.0 0.0 0.0 122 KB

Very simple web framework that does almost everything you would need without hurting your head

License: The Unlicense

JavaScript 83.74% HTML 16.26%

testosteroneframework's Introduction

Testosterone framework

Very simple web framework that does almost everything you would need without hurting your head I was gonna write a joke about the name but i forgot what i was gonna write, and so now the name doesnt make sense but uhhhhhhhhh

How to use: First edit the 404 page in ./servershit/404.html to your liking Then for binary files, simply upload them to servershit, if you want them to be under a subdirectory like example.com/directory/file.png it would be servershit/directory/file.png For actual pages whenever a request is made it first checks if there is a folder with the path name with an index.js in it, if so it runs it (example index.js files in the template folder), if not it looks if there is a file in that path, if so it returns it, if not it errors

==Addendum== You can place an index.php file instead of index.js, this makes it a php script In order to use php, you need to: A: Have php-fpm service installed and running B: Have php-fpm socket on /run/php-fpm/php-fpm.sock

Supported features:

  • Static pages
  • Dynamic pages
  • Url parameters
  • PHP support, simultaneously with js (this is cursed)

Unsupported features:

  • i forgor the name of it but like when a new post is made on a forum, it gets its own id, uh you cant do that without actually creating a file for its id, this is never coming
  • Do not show tag (users can view the index.js of webpages, dont put anything secret in there, this is coming eventually but a temporary workaround would be to just load a file from outside of servershit inside of that index.js so people cant view it)
  • idk anything else

This web framework has not had a security audit, and likely never will, i tried some basic shit at it and i dont see any vulnerabilities, but please dont use this in anything critical (i am not setting a good example of this)

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.