CodeSnap was created to provide an easy-to-use solution for sharing code snippets, making collaboration faster and more intuitive. The platform supports syntax highlighting, code editing, and live code execution, so you can showcase and test code within seconds.
- Real-time Code Editor: Built with Monaco, the editor offers syntax highlighting, code completion, and error handling.
- Live Code Execution: Test code snippets in real-time.
- Firebase Integration: Reliable backend for storing, retrieving, and managing snippets.
- Responsive Design: Optimized for both desktop and mobile.
- Sharing Made Easy: Generate and share links with a single click.
- Node.js (>= 20.0.0)
- npm (>= 10.0.0) or yarn (>= 1.22.0)
-
Clone the repository:
git clone https://github.com/RanitManik/CodeSnap.git cd CodeSnap -
Install dependencies:
npm install
or
yarn install
To start the development server, run:
npm run devor
yarn devOpen your browser and navigate to http://localhost:5173 to interact with CodeSnap.
To build the application for production, run:
npm run buildor
yarn buildThe built files will be located in the dist directory.
To lint your code, run:
npm run lintor
yarn lintTo format your code, run:
npm run formator
yarn formatContributions to CodeSnap are welcome! To contribute:
-
Fork the repository.
-
Create a new branch for your feature or bug fix:
git checkout -b feature-name
-
Make your changes and commit them with clear, descriptive messages.
-
Push your changes to your fork:
git push origin feature-name
-
Open a pull request, detailing the changes and improvements you’ve made.
Thank you for using CodeSnap! Happy coding! 👨💻