GithubHelp home page GithubHelp logo

yfzhe / racketscript-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from racketscript/racketscript-playground

0.0 0.0 0.0 190 KB

Online playground from RacketScript

License: MIT License

Racket 66.61% CSS 3.39% Makefile 5.15% HTML 23.42% Dockerfile 1.43%

racketscript-playground's Introduction

Racketscript Playground

MIT licensed Docker Try Online

Playground for RacketScript. Both server-side and client-side code is written in RacketScript.

Playground uses Github Gist to save and load files. The name of Gist file must be source.rkt.

  • URL of format /#gist/:id will load gist of that provided id.
  • URL of format /#example/:id will download $ROOT_URL/examples/:id.rkt from server.
  • A POST /compile request will take JSON payload of format: { "code": <racket-code> } and return a compiled JS file in reponse.

CoreMirror is used as editor component. Search and Replace shortcuts are here.

Build and Deploy

With Docker (for deployment)

Easiest way is to pull the latest image from Docker registry (racketscript/racketscript-playground).

# Pull docker image
docker pull racketscript/racketscript-playground

# Run playground webserver on port 8080
docker run -dp 8080:8080 -t racketscript/racketscript-playground

You can also build image yourself using make docker-build, followed by make docker-run to start the playground web server. By default, make docker-run binds webserver to port 8080.

Without Docker (for development)

After installing Racket, NodeJS, and RacketScript, execute following commands to run the playground:

make -j4 run

For development, you can use quickrun, after runnning run once, for building both server and client without npm install/update:

make -j4 quickrun

License

RacketScript is licensed under MIT license. Third-party libraries can be found over here and here.

racketscript-playground's People

Contributors

glebm avatar spdegabrielle avatar stchang avatar vishesh 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.