CompileHub is web application that writes, compiles, and executes code in various programming languages directly from your browser. It is built using the Svelte and CodeCompiler API.
- Multi-language Support: Compile and run code in popular programming languages such as C, C++, Java, Python, JavaScript, and more.
- Support for Standard Libraries: The compiler supports standard libraries and APIs for each programming language.
- Error Reporting: If there are any syntax errors or issues in the code, the compiler displays clear error messages, helping users identify and correct their mistakes.
- Shareable Code Snippets: Users can share their code snippets with others easily by copying directly to the clipboard.
Generate API key from RapidAPI Hub -
- Visit CodeCompilerAPI and subscribe to generate API key.
Install CompileHub with npm
git clone https://github.com/riteshnaik55/compilehub.git
cd compilehub
npm install
npm run dev
- Create a .env file in the root directory to store API key.
- Save this as environmental variable - VITE_API_KEY= <YOUR_API_KEY>
You can find the demo website here - Click here
- Svelte - provided framework to build the application
- CodeCompiler API - API to compile and run code
- RapidAPI Hub - platform for providing various public APIs
Thank you for checking out CompileHub! I hope you find it useful and valuable.
For any inquiries or further information, feel free to reach out to me: