Ladebug is an online tool aimed at helping novice programmers improve their debugging skills.
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://localhost:8080 in your browser for the student home page or http://localhost:8080/admin for the admin home page.
Follow these steps to run the server locally.
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
Download and install [MongoDB]
brew tap mongodb/brew
brew install mongodb-community
Update line 8 of app.config.js to point to the flask server.
restangularProvider.setBaseUrl('http://127.0.0.1:5000');
# 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