Code Monkey home page Code Monkey logo

algobeginner's Introduction

AlgoBeginner

Setup

First, install the latest versions of node and npm from nodejs.org.

Then, from a console, run:

git clone https://github.com/hpr/AlgoBeginner
cd AlgoBeginner
npm install
npm run seed
npm run start-dev

The webapp should now be accessible from http://localhost:8080/. To deploy to Heroku, sign up for a Heroku account and install its client, then run these commands at the top-level directory to set up an app:

heroku login
heroku create <app-name>
heroku addons:create heroku-postgresql:hobby-dev
npm run deploy
heroku run bash
(from the Heroku bash prompt) npm run seed

When you’re done, your project should be accessible from https://.herokuapp.com!

To test admin functionality on a live site, use admin user murphy with password 123.

To test regular user functionality on a live site, use user cody with password 123.

Features

Compete for the fastest times across various user-generated challenges in JavaScript! AlgoBeginner uses the vm2 library to run and time code server-side in a sandbox. All routes are protected to prevent unauthorized access or cheating.

Tips

Due to caching, vm2 will typically run a piece of code faster the second time than the first -- so try to submit your code multiple times in a row to get a faster clocking!

algobeginner's People

Contributors

tmkelly28 avatar glebec avatar hpr avatar geoffbass avatar collin avatar fterdal avatar avillr avatar sethfork avatar dependabot[bot] avatar b17z avatar luigilegion avatar dakotablair avatar khumphrey avatar queerviolet avatar omriackley avatar connieelee avatar dadewoyin avatar dpatlut avatar knxyzkn avatar short-matthew-f avatar rinaldo avatar

Watchers

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