This web application allows users to execute code snippets in various programming languages through a user-friendly interface. It leverages the Piston API for executing the code securely and efficiently.
- Multiple Language Support: Execute code in languages like JavaScript, Python, Go, and Java.
- Real-time Execution: Submit code snippets and get immediate execution results.
- User-friendly Interface: A simple and intuitive web interface for code submission.
- Git
- Go (for server-side)
- Node.js and npm (for client-side)
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd <project-directory>
- Install server dependencies:
cd server && go get
- Install client dependencies:
cd ../client npm install
Navigate to the server
directory and run: go run main.go
This will start the backend server.
In the client
directory, start the development server: npm run dev
Open your browser and navigate to http://localhost:5173
to access the web application.
- Select the programming language from the dropdown.
- Enter your code snippet in the textarea provided.
- Click the "Submit" button to execute the code.
- The execution result will be displayed in the output area.