Table of Contents
Community-driven code-sharing platform
This is the front-end codebase for Snippit. The back-end repository can be found at PrantoshB/Snippit.
Snippit is an open-source code sharing website that allows developers to share code snippets, receive feedback, and collaborate with others. It aims to provide a platform for the community to learn, inspire, and improve their coding skills.
- React
- Redux Toolkit
- TypeScript
- Tailwind CSS
- Vite
To run this project locally, follow these steps.
Make sure you have the following installed on your machine:
- Node.js v20.2 or higher
- NPM v9.6.6 or higher
- Backend Server: Make sure you have the backend repository for this project set up and running before proceeding with the frontend setup.
- Clone this repository to your project folder.
cd my-project
git clone [email protected]:IndieCoderMM/snippit-ui.git .
- Install the dependencies:
npm install
Create a .env.local
file in the root directory and add your API endpoint URL:
VITE_API_URL=http://localhost:3000/api/v1
To run the project, execute the following command:
npm run dev
This is an overview of the ./src
directory.
.
├── app/
│ ├── App.tsx
│ └── store.ts
├── assets
├── common/
│ ├── components
│ ├── services
│ └── constants
├── features/
│ ├── snippets/
│ │ ├── SnippetCard.tsx
│ │ └── snippetsSlice.ts
│ └── contributors
├── pages/
│ ├── Home.tsx
│ └── About.tsx
├── index.css
└── main.tsx
app/
: App-wide setup and layoutcommon/
: Shared code and resourcescomponents/
: Reusable components across different pagesservices/
: Interacting with the backend API
features/
: Feature-specific folderssnippets/
: Components and functions related to snippets
pages/
: Main pages of the app
We welcome contributions from the community!
If you'd like to contribute to the project, please follow the guidelines outlined in CONTRIBUTING.md. We appreciate your help!
If you encounter any issues, have feature requests, or want to report a bug, please open an issue on the Issues page. We'll do our best to address them.
We are always looking for ways to improve this project. If you have any suggestions or ideas, we would love to hear from you.
Name | Connect |
---|---|
Prantosh Biswas | |
Hein Thant |
If you find this project useful or interesting, please consider giving it a star ⭐️. It helps us gain visibility and encourages us to continue improving and adding new features.
This project is licensed under the MIT License.