Coder Social home page Coder Social logo

mattvonrocketstein / consolex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sivsushruth/consolex

0.0 1.0 0.0 725 KB

Consolex is a tool that allows you to attach a web based console to any mix project

License: MIT License

Elixir 1.79% CSS 2.68% HTML 2.04% JavaScript 93.49%

consolex's Introduction

Consolex

MIT License Hex Version

Consolex is a tool that allows you to attach a web based console to any mix project.

Image of console

Use the following mix task to start the server on port 5984.

mix consolex.server

Web Console Usage

Open up localhost:5984 on your browser and by default, you get a few launch options:

iex
iex -S mix
erl

You can choose to provide other shell options as well, like iex -S mix phoenix.server. Once the shell is launched, you can start using the editor and hit "Ctrl/Cmd + Enter" or click on the provided button to send the code to the running IEx instance and execute it.

Consider a sample input code

a = 1 + 2
b = a + 3

There are two ways to send the code to the shell for execution and a sample interaction with the shell is as follows

Single line input(Default)

iex(1)> a = 1 + 2; b = a + 3
6

Multiline input

iex(1)> a = 1 + 2
3
iex(2)> b = a + 3
6

Click on the options button to customise the console as per your liking.


Warning: Due to the exposed shell for commands, it is strongly advised to refrain from using this in production environment

Warning: This project is still in development and contains bugs. Please help by reporting issues on github


Features

  • Web Console
  • Ability to plug into any existing mix project
  • Multi line IEx command
  • Command history
  • Erl shell (Please set input option as "multi line")

Installation

To attach the web console to any mix project, just add consolex to your list of dependencies.

Add consolex to your list of dependencies in mix.exs using either

[{:consolex, "~> 0.1.0"}]

[{:consolex, git: "https://github.com/sivsushruth/consolex"}]

Copyright and License

Copyright (c) 2016, Sushruth Sivaramakrishnan.

Consolex source code is licensed under the MIT License.

consolex's People

Contributors

siv-sushruth avatar sivsushruth avatar jonatas 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.