Giter Site home page Giter Site logo

margarytachepiga / thimble.mozilla.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/thimble.mozilla.org

0.0 1.0 0.0 20.84 MB

Online code editor geared to people teaching and learning HTML, CSS, and JavaScript.

Home Page: https://thimble.mozilla.org

License: Mozilla Public License 2.0

JavaScript 79.43% HTML 7.93% CSS 11.63% Shell 0.83% SQLPL 0.04% PLpgSQL 0.03% Ruby 0.12%

thimble.mozilla.org's Introduction

Thimble

Build Status Shipping fast with zenHub

Thimble is Mozilla's online code editor that makes it easy to create and publish your own web pages while learning HTML, CSS & JavaScript. You can try it online by visiting https://thimble.mozilla.org (or https://bramble.mofostaging.net for our staging server).

Thimble

You can read more about some of Thimble's main features in the wiki, or watch a demo video.

Thimble uses a modified version of the amazing Brackets code editor updated to run within web browsers. You can read more about how it works in this blog post.

Thimble requires a modern web browser, and we recommend using Mozilla Firefox or Google Chrome.

Setup

Requirements

  • Node.js (version 4.6 or later) [download]
  • Virtualbox (version 5.1 or later) [download]
  • Vagrant (version 1.9 or later) [download]
    • Note: On Windows machines, you may need to restart your computer after installing Vagrant for it to be fully usable

The setup of Thimble can be divided into two distinct sections:

Editor

To fully use Thimble locally, you need to first setup Brackets locally first. This can be done by following the steps outlined below:

  • Fork the Brackets repository and then clone it to your local machine using git clone --recursive https://github.com/<your_username>/brackets.git (replace <your_username> with your Github username for the account you forked Brackets into)
  • In the cloned repository directory, run npm install to install the dependencies for Brackets
  • Run npm run build to create the built editor files that will be used by Thimble
  • Run npm start to start a server that will allow the editor to be accessed on http://localhost:8000/src
  • You can find out more information about setting up Brackets locally by referring to the instructions here

Thimble and Services

Thimble interacts with the Publish API (source managed in publish.webmaker.org) to store users, projects, files and other content as well as publish user projects.

For authentication and user management, Thimble uses Webmaker OAuth which consists of the Webmaker ID System (source managed in id.webmaker.org) and the Webmaker Login API (source managed in login.webmaker.org).

All three services along with Thimble are bundled together using Git subtrees and run together using Vagrant.

The first step is to fork and clone Thimble and navigate to the cloned directory in a terminal shell.

For the first time, to start all dependent services and Thimble, simply run:

vagrant up

This process can take a while depending on your internet connection speed as it needs to download all dependencies. Once you see a log that says Express server listening on http://localhost:3500, you can access Thimble on http://localhost:3500.

You can now make changes to the Thimble source code on your system and they should be automatically reflected on http://localhost:3500.

To stop running Thimble, simply press Ctrl+C twice.

To restart Thimble again, run:

vagrant reload --provision

This will take a much shorter time to setup compared to the vagrant up command.

Localization

Please refer to the Wiki for information on the localization procedures used in Thimble.

Our Localization Community

Our localization community is awesome! They work very hard to translate Thimble so that we can expand our global reach and engage even more users in other languages. We can't thank them enough!

Invalidating CloudFront

To invalidate the production CloudFront distribution, make sure you have correct credentials set up in your env file. Then run node invalidate.js. Alternatively, if you have access to the heroku deployments, run the invalidation as a one-off dyno with heroku run npm run invalidate

Concurrency

Thimble uses the throng module to leverage Node's Cluster API for concurrency. To specify the number of server processes to start set WEB_CONCURRENCY to a positive integer value.

Contact Us

We're a friendly group, so feel free to chat with us in the "Thimble" channel on Mozilla Chat running on Mattermost. To access Mozilla Chat head to this link. Note that you will need to create an account first.

You can also download a mobile or desktop client for Mattermost here.

thimble.mozilla.org's People

Contributors

pomax avatar jbuck avatar humphd avatar scottdowne avatar gideonthomas avatar sedge avatar alicoding avatar flukeout avatar jordantheriault avatar milupo avatar mozilla-pontoon avatar theochevalier avatar k88hudson avatar mohammedbelkacem avatar avelper avatar eliogi avatar tonnesm avatar admix avatar errietta avatar mjschranz avatar bychekru avatar ujdhesa avatar hyeonseok avatar yfdyh000 avatar ravmn avatar cs09g avatar rodrigommc avatar puzzledshark avatar bellayet avatar cesperanc avatar

Watchers

Margaryta Chepiga 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.