CodeBin is a web application designed for developers to easily share and store code snippets with others. It provides a platform where users can quickly paste their code, share it with colleagues or the community, and access it later when needed. CodeBin aims to enhance collaboration and streamline code sharing processes, making it effortless for developers to exchange snippets for various programming tasks.
CodeBin.mp4
- Code Sharing: Users can paste their code snippets and share them with others via unique URLs.
- Syntax Highlighting: CodeBin supports syntax highlighting for various programming languages, ensuring code readability.
- Search Functionality: Users can search for specific snippets by keywords or tags to quickly find relevant code.
- Frontend: React.js with TypeScript
- Backend: Express.js with TypeScript
- Database: MongoDB
- Styling: Tailwind CSS
-
Clone the repository:
git clone https://github.com/SameerSahu007/CodeBin.git
-
Navigate into the project directory:
cd codebin
-
Install dependencies for both the frontend and backend:
cd frontend npm install cd ../backend npm install
-
Set up MongoDB:
-
Make sure MongoDB is installed and running on your system.
-
Create a
.env
file in thebackend
directory and add your MongoDB connection URI:MONGODB_URI=your_mongodb_connection_uri
-
-
Start the backend server:
npm run dev
-
Start the frontend development server:
cd ../frontend npm run dev
-
Open your browser and navigate to
http://localhost:3000
to access CodeBin.
Contributions to CodeBin are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes. For major modifications, please open an issue first to discuss the changes you wish to make.
This project is licensed under the MIT License.