Giter Site home page Giter Site logo

msylvia / bits Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jakiestfu/bits

0.0 1.0 0.0 581 KB

Bits Editor is your personal playground to develop in HTML, CSS, and Javascript, all from your own server.

Home Page: http://coolbitsbro.com/

ApacheConf 0.03% PHP 9.57% CSS 3.94% JavaScript 86.47%

bits's Introduction

Bits Editor is your personal playground to develop in HTML, CSS, and Javascript, all from your own server. Bits is written in PHP

Featurse

  • HTML, CSS, and Javascript Editors
  • Hotkeys/shortcuts
  • Flat File Users
  • Share Results
  • In Depth Settings for CSS, HTML, Javascript, and additional assets
  • Secure CORS Workaround for displaying code
  • Framework independent, but still MVC
  • Lightweight, ~ 8.5k lines of code
  • Extendable

Requirements

  • PHP and MySQL, and an imagination brah, nothing crazy

Install

There are a few things you must do before you can get started playing with Bits Editor, but don't worry, they're really small.

1. Install the single table that Bits uses

Bits uses a single table in it's database. The .sql file to install is located in /setup/isntall.sql

2. Editor your Config File

Bits has a lot of settings for you to mess with. Navigate to /www/app/config/config.php to access them. You are required to set your base_url, your code_url (more no this option below), all of the prefixed db_ properties, and lastly, your users.

The code_url is the same url as your application, but it has a subdomain pointing to the main install. This is to thwart your code iframes from having access to the editor itself.

Go!

Bits will be ready for you to play with at this point. Have fun!


config.php Options

  • autoload - This is an array of plugins and helpers to autoload into bits everytime a request is sent.
  • reserved_translate - Bits uses MVC with no textual routing, meaning your filenames must match the URI. Because new is a reserved keyword in PHP, we must use this array to define what the new keyword will point to. By default, this is set to reserved_new
  • base_bit_settings - These are the default settings for Bits HTML, CSS, and Javascript
  • base_editor_settings - These are the default settings for your Bits Editors, including theme, tab size, line wrapping, and more.
  • libraries - This is an array of arrays used to dynamically list what libraries you want to have available to your users when writing their code.

Screenshots






bits's People

Contributors

jakiestfu 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.