# Snigdha OS Web π
Welcome to the Snigdha OS Web repository! This repository contains the source code, components, and resources used for building and maintaining the official website for Snigdha OS. π
[](https://app.netlify.com/sites/snigdhaos/deploys)




## Table of Contents π
- [Overview](#overview)
- [Features](#features)
- [Technologies Used](#technologies-used)
- [Dependencies & Scripts Explanation](#dependencies--scripts-explanation)
- [Repository Structure](#repository-structure)
- [Developers](#developers)
- [Development Guide](#development-guide)
- [Contributing](#contributing)
- [License](#license)
## Overview π
The Snigdha OS Web repository powers the official Snigdha OS website. It includes various web development components, styles, and scripts necessary for the website's functionality. The website is designed to be clean, lightweight, and user-friendly, aligning with the philosophy of Snigdha OS. π¨π»
## Features π§
- **Responsive Design** π±: The website is fully responsive and works across various devices and screen sizes.
- **User Registration & Authentication** π: Integrated with the Snigdha OS user system for registration and authentication.
- **Region-based Downloads** π: Allows users to select regional mirrors for downloading Snigdha OS.
- **Customizable UI** π¨: Built with flexibility in mind for future enhancements and easy theming.
- **SEO Optimization** π: The website is optimized for search engines to ensure better discoverability.
## Technologies Used π οΈ
This project utilizes a range of modern web technologies to create a seamless and performant experience:
- **React.js** βοΈ: A JavaScript library for building user interfaces, allowing for reusable components and a fast development workflow.
- **Node.js** π: A runtime environment for executing JavaScript on the server-side.
- **Express.js** β‘: A minimal web framework for Node.js used for backend API routes.
- **Redux** π¦: A state management library to handle the application's state in a predictable way.
- **CSS3** π¨: For styling the website with modern layout techniques (Flexbox, Grid).
- **Sass** π§Ά: A CSS preprocessor to manage complex stylesheets and make the development process more efficient.
- **Webpack** βοΈ: A module bundler for JavaScript and other assets, ensuring optimal performance and organization.
- **Jest** π§ͺ: A testing framework used for running unit and integration tests.
- **ESLint** π: A tool for identifying and fixing issues in JavaScript code to ensure consistency and adherence to coding standards.
## Dependencies & Scripts Explanation π¦π οΈ
### **Dependencies** π
These are the core libraries required for the website to run in production:
- **`lucide-react`** π: A library of open-source, customizable SVG-based icons for React. It helps add vector icons to the UI.
- **`octokit`** π¦: A JavaScript library for interacting with GitHubβs API, useful for fetching data from GitHub repositories.
- **`react`** βοΈ: The core React library to build user interfaces. React components handle rendering and interactivity.
- **`react-dom`** π: Provides methods to render React components in the browser and manage updates.
- **`react-icons`** π: A set of icons packaged as React components. It simplifies adding icons to the UI.
- **`react-router-dom`** π£οΈ: A routing library for React, enabling navigation between pages and managing URL parameters.
### **DevDependencies** π§°
These are tools used during development to build, lint, and optimize the project:
- **`@eslint/js`** π§βπ»: Core ESLint library to identify and fix JavaScript code issues.
- **`@types/react`** and **`@types/react-dom`** π¬: TypeScript definitions for React and ReactDOM, providing type safety and better development experience.
- **`@vitejs/plugin-react`** βοΈ: Vite plugin for React, enabling features like React Fast Refresh and JSX transformation.
- **`autoprefixer`** π: PostCSS plugin that automatically adds vendor prefixes to CSS to ensure cross-browser compatibility.
- **`eslint`** π: The linter for JavaScript/TypeScript to ensure consistent code quality.
- **`eslint-plugin-react-hooks`** πͺ: An ESLint plugin to enforce rules of React Hooks usage.
- **`eslint-plugin-react-refresh`** π: Ensures that React Fast Refresh works correctly during development.
- **`globals`** π: Provides a list of global variables in different environments, such as browser and Node.js, for linting.
- **`postcss`** π§©: A tool to transform CSS with plugins, such as autoprefixing, minification, and more.
- **`tailwindcss`** π: A utility-first CSS framework to rapidly build custom and responsive designs.
- **`typescript`** π€: A superset of JavaScript that adds static typing for more maintainable and reliable code.
- **`typescript-eslint`** π: Enables ESLint to lint TypeScript code, enforcing consistent styling and error-free code.
- **`vite`** β‘: A fast, next-generation build tool optimized for modern web development.
- **`lint-staged`** π: Runs linters on staged files before committing, ensuring that only clean code is committed.
- **`storybook`** π: A tool to develop and test UI components in isolation, ideal for building reusable UI elements.
### **Scripts** π
These are various commands that help automate tasks in the development process:
- **`dev`** π₯: Starts the development server (`vite`), enabling hot reloading and fast builds.
- **`build`** ποΈ: Builds the project for production with optimized assets.
- **`lint`** β οΈ: Runs ESLint to check for any code quality issues.
- **`preview`** π: Previews the production build locally.
- **`start`** π: Alias for `pnpm dev`, starts the development server.
- **`test`** π§ͺ: Runs linting and builds the app as a testing workflow.
- **`fix`** π§: Automatically fixes any linting errors.
- **`format`** ποΈ: Runs Prettier to format code according to style conventions.
- **`clean`** π§Ή: Cleans the `dist` folder, removes `node_modules`, and reinstalls dependencies.
- **`deploy`** π: Builds the project and deploys it to Netlify.
- **`analyze`** π: Analyzes the build output for performance improvements.
- **`check-types`** β
: Checks TypeScript types without emitting code.
- **`generate-icons`** πΌοΈ: Generates an SVG sprite from the icons in the `src/assets/icons` folder.
- **`precommit`** β
: Runs `lint-staged` to lint files before committing.
- **`storybook`** π: Starts Storybook to develop and test components in isolation.
- **`build-storybook`** ποΈ: Builds the Storybook for deployment.
- **`check-deps`** π: Audits and updates dependencies.
- **`postinstall`** π§°: Runs additional commands after dependencies are installed (like starting Vite).
## Repository Structure π
The project is organized as follows: