CS50 IDE (Best Platform for coding Online/Offline)
CS50 IDE
CS50 IDE is a cloud-based Integrated Development Environment powered by Cloud9 that features a cloud-based Ubuntu environment. It features a browser-based editor, that supports C syntax highlighting and word completion, a GUI-based GDB debugging, full control over a cloud-based Ubuntu environment, and many more features including themes, customizable layouts, and keyboard shortcuts. Since it’s cloud-based, you can continue working on your problem sets even if you use a different computer!
It is the best platform for coding for the front-end programmers. It supports many languages like C, C++, Python, etc.
It is online as well as offline. The online version of CS50 is the best for the group coding, project development, group study, etc.
As it uses GIT usually known as GITHUB for online collaboration between different systems all around the world. It also saves all the changes made by you or your group, that makes easy to return to the previous codes if your current code becomes wrong. It synchronizes the different data of different systems into a single file so that everyone in the group can access the copy of the original code to use it and can make required changes.
Installing
CS50 IDE Offline is a containerized app. We need to install a platform called Docker to run it.
Linux
Follow the instructions for your Linux distribution to install Docker Engine.
- Open up a terminal window and run the following command to create a new CS50 IDE instance:
docker run --privileged -e "OFFLINE_IP=127.0.0.1" -e "OFFLINE_PORT=8080" --name ide50 -d -p 5050:5050 -p 8080-8082:8080-8082 cs50/ide50-offline
- Visit http://localhost:5050/ in your favorite browser to access CS50 IDE.
Mac
NOTE: If these system requirements are not met, skip to Docker Toolbox.
- Install Docker for Mac.
- Open up a terminal window and run the following command to create a new CS50 IDE instance:
docker run --privileged -e "OFFLINE_IP=127.0.0.1" -e "OFFLINE_PORT=8080" --name ide50 -d -p 5050:5050 -p 8080-8082:8080-8082 cs50/ide50-offline
- Visit http://localhost:5050/ in your favorite browser to access CS50 IDE.
Windows
NOTE: If these system requirements are not met, skip to Docker Toolbox.
- Install Docker for Windows.
- Open up a command prompt window and run the following command to create a new CS50 IDE instance:
docker run --privileged -e "OFFLINE_IP=127.0.0.1" -e "OFFLINE_PORT=8080" --name ide50 -d -p 5050:5050 -p 8080-8082:8080-8082 cs50/ide50-offline
- Visit http://localhost:5050/ in your favorite browser to access CS50 IDE.
Docker Toolbox
NOTE: You should only follow these instructions if you are a Windows or Mac user and the system requirements for Windows or Mac, respectively, are not met.
- Open up the Docker QuickStart Terminal app that was installed on your computer. After a while, you should see something like the following, with a command prompt below it:
- The IP stated in the screenshot above is the IP of the Docker machine. It may be different on your computer. You are going to use this IP to access your CS50 IDE, so you should record it.
- Run the following command in the Docker QuickStart Terminal to create a new CS50 IDE instance:
docker run --privileged -e "OFFLINE_IP=$(docker-machine ip default)" -e "OFFLINE_PORT=8080" --name ide50 -d -p 5050:5050 -p 8080-8082:8080-8082 cs50/ide50-offline
- Visit http://<machine-ip:5050/>, in your favorite browser, to access CS50 IDE, after replacing
<machine-ip>
with the actual IP for the Docker machine.
TIP: If you ever forgot or lost the IP of the Docker machine, you should be able to get it back by running
docker-machine ip default
in the Docker QuickStart Terminal.Managing the IDE
Starting the IDE
If you can’t access your CS50 IDE (e.g., after restarting your computer), it’s possibly because it’s stopped. To start it back, open up a terminal window (if using Mac), a command prompt (if using «windows»), or Docker QuickStart Terminal (if using Docker Toolbox, and run the following command:
docker start ide50
Restarting
Normally, you shouldn’t need to restart the IDE, but if you ever wanted to open up a terminal window (if using Mac), a command prompt (if using Windows) or Docker QuickStart Terminal (if using Docker Toolbox), and run the following command:
docker restart ide50
Stopping
To stop CS50 IDE, open up a terminal window (if using Mac), a command prompt (if using Windows) or Docker QuickStart Terminal (if using Docker Toolbox), and run the following command:
docker stop ide50
Removing
To remove your CS50 IDE instance, open up a terminal window (if using Mac), a command prompt (if using Windows) or Docker QuickStart Terminal (if using Docker Toolbox), and run the following command:
docker rm ide50
Comments
Post a Comment