Coder Social home page Coder Social logo

marvinclerge / coding-website Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.62 MB

Coding Website is an web application that allows users to create, evaluate and take code challenges in sandboxed environment using Javascript ES5

License: MIT License

HTML 3.17% CSS 12.27% JavaScript 84.56%
reactjs ace-editor js-interpreter javascript frontend

coding-website's Introduction

Coding Website

Coding Website is an web application that allows users to create, evaluate and take code challenges in sandboxed environment using Javascript

Click here to view the backend of Coding Website

Motivation

The goal of this web application was to create a website that would allow users to write, execute, save and take on challenges in Javascript.

Tech/framework used

React.js

Used to create frontend, manage application state, user interface, DOM manipulation, and fetching data from backend API.

Ruby on Rails

Used to create backend JSON API.

PostgreSQL

Used to store and manage user information.

AceEditor

Used for live syntax checking and highlighting of JavaScript code.

JS-Interpreter

Used to evaluate JavaScript code in a sandboxed environment

Installation

In order to use this application ruby and node js must be installed

MAC OS

  1. Download both the frontend and backend of Coding Website
  2. Go to the backend folder location in your terminal and run bundle install
  3. After the installation is complete run rails db:migrate and rails db:seed to create the database
  4. Run rails s -p 3001 to start the backend rails server
  5. Go to the frontend folder location in your terminal
  6. Run npm install to install required node packages
  7. Run npm start to start the frontend server
  8. Go to http://localhost:3000 in your browser

How to use?

After installation this application offers a variety of activities. Below are the myriad of things you can do:

Login

In top right of the home page is the login section. Here users can create or login to an account.

Code

After clicking the “Start Coding” button users can write in the editor on the left.

Menu

User can open the side menu by clicking the ≡ button. There are 3 tabs in the menu OUTPUT, CHALLENGES and MY CODE.

Output

In the OUTPUT tab of the menu users can run the code, reset the editor, and if logged in save the code.

My Code

In the MY CODE tab of the menu if logged in users can view, load and delete their code

Challenges

In the CHALLENGES tab of the menu users can take on challenges created by other users. If logged in users can create challenges. When running a challenge the OUTPUT tab will change to only allow running the challenge. Users can switch back to normal by resetting the editor or loading code.

Screenshots

home page coding with output coding with challenge

Video Demo

IMAGE ALT TEXT HERE

License

MIT License

Copyright (c) 2018 Marvin Clerge

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

coding-website's People

Contributors

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