Skip to content
/ ladebug Public

An online tool to help students learn how to debug code.

License

Notifications You must be signed in to change notification settings

EmandM/ladebug

Repository files navigation

Ladebug

Ladebug is an online tool aimed at helping novice programmers improve their debugging skills.

Use Ladebug

Run Instructions

Currently the AngularJS client points to a hosted server, so the client can be run locally without needing to install the server

Ensure you have the latest version of NodeJS and npm

# clone the repo
$ git clone https://github.com/EmandM/ladebug.git

# change directory to the project
$ cd ladebug

# install the dependencies with npm
$ npm install

# run the client
$ npm run dev

go to http:https://localhost:8080 in your browser for the student home page or http:https://localhost:8080/admin for the admin home page.

Local Development

Follow these steps to run the server locally.

Flask Server

Install Python 3.x and the corresponding pip on your machine. https://www.python.org/downloads/. Ensure both are added to your PATH. The python installer gives the option to do this automatically.

# Install the necessary python libraries
$ pip install Flask Flask-Cors Flask-RESTful Werkzeug pymongo requests google-auth

MongoDB Database

Download and install [MongoDB]

brew tap mongodb/brew  

brew install mongodb-community

AngularJS Client

Update line 8 of app.config.js to point to the flask server.

restangularProvider.setBaseUrl('http:https://127.0.0.1:5000');

Run local installation

# Start the mongodb server
$ brew services start mongodb-community

# In one command prompt run
$ npm run dev

# In another command prompt run
$ python ./commandLine/flask_app.py

# Or explicitly run python3 if another python version is installed
$ python3 ./commandLine/flask_app.py

License and Copyright

Copyright