DevSpace is an online compiler that spins up a Docker Ubuntu environment on the server. It is built using ReactJS, NodeJS, and ExpressJS. DevSpace provides a seamless coding experience with the ability to install any libraries related to the programming language you are using.
- Language Bar: Allows users to select any programming language for coding.
- Code Editor Screen: A feature-rich editor where users can write their code.
- Terminal Section: A fully functional terminal where users can execute shell commands and install libraries using commands like
pip
,npm
, etc. - Run Button: Executes the code and displays the output in the terminal.
- Boilerplate Code: Provides boilerplate code for different programming languages to help users get started quickly.
DevSpace leverages Docker to create an isolated Ubuntu environment. This allows for a highly customizable and flexible development environment where users can install any libraries they need.
The terminal section uses WebSocket to provide real-time command execution. This feature is adapted from another one of my GitHub projects, CloudShell. For detailed information on how the terminal works, please refer to the README file in the CodeShell repository.
To set up DevSpace locally, follow these steps:
-
Clone the repository:
git clone https://github.com/DeepakS-Github/DevSpace cd DevSpace
-
Start the Docker environment (may take some time):
docker-compose up --build
- Open your browser and navigate to
http://localhost:3000
. - Select your preferred programming language from the language bar.
- Write your code in the code editor.
- Use the terminal to execute shell commands or install any necessary libraries.
- Click the "Run" button to see the output in the terminal.
Contributions are welcome! Please fork this repository and submit pull requests.