Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akhilmhdh/ide-v1
A simple web ide that can compile multiple programming languages like c, c++, python3
https://github.com/akhilmhdh/ide-v1
docker docker-compose express nodejs typescript web-ide
Last synced: 26 days ago
JSON representation
A simple web ide that can compile multiple programming languages like c, c++, python3
- Host: GitHub
- URL: https://github.com/akhilmhdh/ide-v1
- Owner: akhilmhdh
- License: mit
- Created: 2020-11-10T17:07:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-23T14:02:53.000Z (almost 4 years ago)
- Last Synced: 2024-10-11T17:06:30.545Z (about 1 month ago)
- Topics: docker, docker-compose, express, nodejs, typescript, web-ide
- Language: TypeScript
- Homepage:
- Size: 157 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
IDE V1
A simple dockerized Nodejs Express backend to compile programs written C, C++, python3.
> This is a really simple base version. Scaled version using k8 with a really efficient architecture is coming soon. :smile:
### Built With
- [nodejs](https://nodejs.org)
- [docker](https://www.docker.com)## Getting Started
### Prerequisites
- NodeJS
- Docker### Installation
1. Start the docker engine
2. Clone the repo
```bash
git clone https://github.com/akhilmhdh/ide.git
cd ide
```
3. Start the application using docker-compose```bash
docker-compose -f Dockerfile.dev up
```4. Visit `http://localhost:8000`
### Running Test
```bash
docker-compose -f Dockerfile.test up
```### Route
- Endpoint: POST /code/compile
- Request body format JSON| Key | Value | Required |
| ------ | ---------------------------- | -------- |
| script | base64 encoded program code | True |
| lang | c, c++, python3 | True |
| input | base64 encoded program input | False |> Multiple needed programs can also be added furthur by changing the dockerfile and adding code running command in [codeRunner class](src/api/compiler/codeRunner.ts)
## License
Distributed under the MIT License. See [`LICENSE`](LICENSE) for more information.