Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 2.4 KB

File metadata and controls

73 lines (49 loc) · 2.4 KB

CodeSnap

CodeSnap is an open-source project inspired by Carbon.now.sh. It allows users to create and share beautiful images of their source code with a simple and intuitive interface. The project consists of a Flask backend and a Next.js frontend.

Table of Contents

  1. Project Structure
  2. Features
  3. Getting Started
  4. Running the Application
  5. Contributing
  6. License

Project Structure

The repository is organized into two main folders:

  • frontend/ - Contains the Next.js frontend code.
  • backend/ - Contains the Flask backend code.

Each folder has its own README.md with detailed instructions for setting up and running the respective parts of the project.

Features

  • Responsive design for optimal viewing on any device
  • Syntax highlighting for various programming languages
  • Custom themes and styling options
  • Image export functionality
  • RESTful API to handle code snippet processing

Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

  • Python 3.10 or higher
  • Node.js and npm/yarn
  • pip (Python package installer)
  • virtualenv (optional, but recommended)

Installation

  1. Clone the repository:

    git clone https://github.com/MuhammadSaim/CodeSnap.git codesnap
    cd codesnap
  2. Follow the installation instructions in the respective frontend and backend folders.

Contributing

We welcome contributions to improve CodeSnap. To contribute, please follow these steps:

  • Fork the repository.
  • Create a new branch: git checkout -b feature/your-feature-name.
  • Make your changes and commit them: git commit -m 'Add some feature'.
  • Push to the branch: git push origin feature/your-feature-name.
  • Open a pull request.

Please ensure that your code adheres to the existing coding conventions and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Feel free to reach out if you have any questions or need further assistance. Happy coding!