Giter Club home page Giter Club logo

online-code-editor's Introduction

An online javascript code test

This is an online code test with an online javascript code editor. It fully depends on JDoole and react-codemirror. There will be five random questions, and you can submit your answers and will be examined by JDoole API.


How to use

// you need node js to start this project
npm install
npm start

After start APP

You will see a login page, and you can enter the page directly by press login button, because this project hasn't been linked with any other servers.

After enter main page

You will see a left panel with a question list, and a code editor on the right side. Once you click on a question, you can start to modify and test your code.

Test code

You can enter a parameter and press test button to see if you can get the result you want.

Save your code

You can either save the code manually by pressing save button, or you can leave it to auto saving function which can save your code every 20s automatically.

Submit your anwser

If you are really confidence with your solution, you can press submit button, and the system will provide if your job can pass all of the five test cases or not. Note: because this APP is using free JDoole API, only 200 times everyday to check your work.

Once you finished

You will get a result page.

Dependencies

React.js react-router-dom react-joyride reactour/tour sockjs-client webstomp-client react-codemirror

TODO

This APP is an ongoing project, several features to be finished in the future.

  1. add register user and integrate it with backend service
  2. add more thorough test cases for questions
  3. add multi-user features
  4. fix websocket CORS issue
  5. support other languages

online-code-editor's People

Contributors

rmit-s3712674-sijie-shi 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.