Cal-CS-61A-Staff / 61a-code

Web-based IDE for Python, Scheme, and SQL intended for students taking CS 61A.
MIT License
7 stars 9 forks source link

61A Editor

Try the production version at https://code.cs61a.org!

Web Editor

In the releases, download the latest web.zip file, activate the pipenv, and run app.py to start a Flask server. Alternatively, run

yarn
yarn web-dist
yarn web-dev

to start the editor in development mode. (You will need to add the additional files and run the setup for this to work)

Additional Files

You will need

Web Editor Backend Setup

Create a virtualenv

virtualenv -p python3 env
source env/bin/activate
pip install pipenv
cd dist/web
pipenv install # you may need to run sudo apt-get install libmysqlclient-dev or equivalent
cd ../..

Then run python src/web-server/app.py to start the python backend.

Local Editor (experimental!)

To try, ensure that python is installed on your machine, and can be run with the python3.6 command (will be made configurable in the future).

Then, run

yarn
yarn dist
yarn dev

and the editor will start.