mirror of
https://github.com/Snigdha-OS/snigdhaos-web-dev.git
synced 2025-09-05 12:56:37 +02:00
📝 docs(bump): script explanation
This commit is contained in:
247
readme.md
247
readme.md
@@ -1,161 +1,186 @@
|
||||
# Snigdha OS Web Dev 🌐
|
||||
|
||||
# Snigdha OS Web Dev 🌐💻
|
||||
Welcome to the Snigdha OS Web Dev repository! This repository contains the source code, components, and resources used for building and maintaining the official website for Snigdha OS. 🚀
|
||||
|
||||
Welcome to the **Snigdha OS Web Dev** repository! 🎉 This repository contains the source code, components, and resources used for building and maintaining the official website for **Snigdha OS**. 🚀
|
||||
<div align="center">
|
||||
[](https://app.netlify.com/sites/snigdhaos/deploys)
|
||||
</div>
|
||||
|
||||
## Table of Contents 📑
|
||||
## Table of Contents 📑
|
||||
|
||||
- [Overview](#overview) 🌟
|
||||
- [Features](#features) ✨
|
||||
- [Technologies Used](#technologies-used) ⚙️
|
||||
- [Repository Structure](#repository-structure) 📂
|
||||
- [Developers](#developers) 👨💻👩💻
|
||||
- [Development Guide](#development-guide) 🛠️
|
||||
- [Contributing](#contributing) 🤝
|
||||
- [License](#license) 📜
|
||||
- [Overview](#overview)
|
||||
- [Features](#features)
|
||||
- [Technologies Used](#technologies-used)
|
||||
- [Dependencies & Scripts Explanation](#dependencies--scripts-explanation)
|
||||
- [Developers](#developers)
|
||||
- [Development Guide](#development-guide)
|
||||
- [Contributing](#contributing)
|
||||
- [License](#license)
|
||||
|
||||
## Overview 🌟
|
||||
|
||||
The Snigdha OS Web Dev 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. 🎨💻
|
||||
|
||||
## Overview 🌟
|
||||
## Features 🔧
|
||||
|
||||
The **Snigdha OS Web Dev** repository powers the official website for the next **Snigdha OS**. 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 minimalist philosophy of Snigdha OS. 🖥️
|
||||
- **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:
|
||||
|
||||
## Features ✨
|
||||
- **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.
|
||||
|
||||
- 📱 **Responsive Design**: Works seamlessly across devices and screen sizes.
|
||||
- 🔑 **User Registration & Authentication**: Integrated with the Snigdha OS user system.
|
||||
- 🌍 **Region-based Downloads**: Select regional mirrors for faster downloads.
|
||||
- 🎨 **Customizable UI**: Built for flexibility and easy theming.
|
||||
- 🌐 **SEO Optimization**: Ensures better discoverability on search engines.
|
||||
## Dependencies & Scripts Explanation 📦🛠️
|
||||
|
||||
### **Dependencies** 🚀
|
||||
|
||||
These are the core libraries required for the website to run in production:
|
||||
|
||||
## Technologies Used ⚙️
|
||||
- **`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.
|
||||
|
||||
This project leverages modern technologies to deliver an efficient and scalable experience:
|
||||
### **DevDependencies** 🧰
|
||||
|
||||
- ⚛️ **React.js**: For building dynamic user interfaces.
|
||||
- 🟢 **Node.js**: A runtime environment for server-side JavaScript.
|
||||
- 🚀 **Express.js**: Minimal web framework for backend API routes.
|
||||
- 🗂️ **Redux**: State management for predictable application behavior.
|
||||
- 🎨 **CSS3 & Sass**: Styling with modern techniques like Flexbox and Grid.
|
||||
- 📦 **Webpack**: Bundling JavaScript and assets for optimized performance.
|
||||
- ✅ **Jest**: Testing framework for unit and integration tests.
|
||||
- 🛠️ **ESLint**: For consistent and error-free JavaScript code.
|
||||
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** 📝
|
||||
|
||||
## Repository Structure 📂
|
||||
These are various commands that help automate tasks in the development process:
|
||||
|
||||
The repository is organized for clarity and modularity:
|
||||
- **`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).
|
||||
|
||||
```plaintext
|
||||
snigdhaos-web-dev/
|
||||
├── src/ # Main source code
|
||||
│ ├── components/ # Reusable components (Header, Footer, Forms)
|
||||
│ ├── pages/ # Website pages (Home, About, Download)
|
||||
│ ├── styles/ # Global and component-specific styles
|
||||
│ ├── utils/ # Utility functions and helpers
|
||||
│ └── App.js # Root React component
|
||||
├── public/ # Static assets (images, icons, fonts)
|
||||
├── tests/ # Unit and integration tests
|
||||
├── package.json # Project dependencies and scripts
|
||||
├── pnpm-lock.yaml # Lockfile for pnpm dependencies
|
||||
├── README.md # This README file
|
||||
├── .eslintrc.js # ESLint configuration
|
||||
├── .gitignore # Files to ignore in Git
|
||||
└── LICENSE # License file
|
||||
```
|
||||
## Developers 👨💻👩💻
|
||||
|
||||
### Key Folders 📁
|
||||
- **Eshanized** - Lead Developer, Web Architect 🔧
|
||||
|
||||
- **`src/components/`**: Modular, reusable UI components like navigation bars and forms.
|
||||
- **`src/pages/`**: Individual pages of the website, such as Home, About, and Download.
|
||||
- **`src/styles/`**: Stylesheets for consistent design across the website.
|
||||
- **`public/`**: Static files served directly without processing.
|
||||
If you would like to contribute or join the team, feel free to reach out! 📬
|
||||
|
||||
## Development Guide 📚
|
||||
|
||||
### Prerequisites 📥
|
||||
|
||||
## Developers 👨💻👩💻
|
||||
To get started with development, you need:
|
||||
|
||||
Meet the amazing contributors behind Snigdha OS Web Dev:
|
||||
- **Node.js** and **pnpm** installed on your local machine.
|
||||
- A modern web browser (Chrome, Firefox, etc.) for testing and debugging.
|
||||
- A code editor (VSCode, Sublime Text, etc.).
|
||||
- Familiarity with React.js, JavaScript, CSS, and Git.
|
||||
|
||||
- **[Eshanized](https://github.com/eshanized/)** - Lead Developer, Web Architect 🌟
|
||||
### Setting Up the Development Environment 🛠️
|
||||
|
||||
We’re always looking for passionate developers to join the team! 💖
|
||||
1. Clone the repository:
|
||||
```bash
|
||||
git clone https://github.com/Snigdha-OS/snigdhaos-web-dev.git
|
||||
cd snigdhaos-web-dev
|
||||
```
|
||||
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
|
||||
3. Run the development server:
|
||||
```bash
|
||||
pnpm start
|
||||
```
|
||||
|
||||
## Development Guide 🛠️
|
||||
This will start the development server at `http://localhost:5173`. Any changes made to the code will be reflected immediately. 🔄
|
||||
|
||||
### Prerequisites ⚡
|
||||
### Folder Structure 📂
|
||||
|
||||
To start working on the project, you need:
|
||||
- **Node.js** and **pnpm** installed on your machine.
|
||||
- A modern browser for testing (e.g., Chrome, Firefox).
|
||||
- A code editor like VSCode for efficient development.
|
||||
- Familiarity with React.js, JavaScript, and Git.
|
||||
- `src/`: Contains all the source code for the frontend. 🖥️
|
||||
- `public/`: Static files such as images, icons, and fonts. 📸
|
||||
- `components/`: Reusable components like headers, footers, and forms. 🛠️
|
||||
- `pages/`: Individual pages of the website like home, about, and download pages. 📄
|
||||
- `styles/`: CSS files for styling the website. 🎨
|
||||
|
||||
### Setting Up the Development Environment 🚀
|
||||
### Contribution Guidelines ✍️
|
||||
|
||||
1. Clone the repository:
|
||||
```bash
|
||||
git clone https://github.com/Snigdha-OS/snigdhaos-web-dev.git
|
||||
cd snigdhaos-web-dev
|
||||
```
|
||||
- **Fork the repository** and clone your fork locally.
|
||||
- Create a new branch for each feature or bug fix:
|
||||
```bash
|
||||
git checkout -b feature-name
|
||||
```
|
||||
- Make your changes, commit them with clear and descriptive commit messages.
|
||||
- Push your changes to your fork and create a pull request to the `main` branch.
|
||||
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
### Code Style and Best Practices 💡
|
||||
|
||||
3. Run the development server:
|
||||
```bash
|
||||
pnpm start
|
||||
```
|
||||
- Follow a consistent style guide for JavaScript and CSS.
|
||||
- Use meaningful variable names, and avoid long functions.
|
||||
- Comment complex logic to explain the reasoning behind it.
|
||||
- Use `pnpm run lint` to check for code style issues before committing.
|
||||
|
||||
The server will start at `http://localhost:5173`. Changes to the code will auto-refresh in your browser.
|
||||
### Testing 🧪
|
||||
|
||||
To test changes locally, run:
|
||||
```bash
|
||||
pnpm run test
|
||||
```
|
||||
|
||||
This will run the Jest test suite for any components or functions that have been set up for testing.
|
||||
|
||||
## Contributing 🤝
|
||||
## Contributing 🤝
|
||||
|
||||
We welcome contributions! Here’s how you can contribute:
|
||||
We welcome contributions from everyone! If you'd like to contribute to Snigdha OS Web Dev, please follow these steps:
|
||||
|
||||
1. **Fork the repository**:
|
||||
Click the “Fork” button at the top of the page to create your copy.
|
||||
1. Fork the repository.
|
||||
2. Clone your fork locally and create a new branch.
|
||||
3. Make your changes and test them.
|
||||
4. Create a pull request with a clear description of your changes.
|
||||
|
||||
2. **Create a branch** for your feature or bug fix:
|
||||
```bash
|
||||
git checkout -b feature-name
|
||||
```
|
||||
If you have any ideas or suggestions, please feel free to open an issue or start a discussion. 💬
|
||||
|
||||
3. **Make your changes**:
|
||||
Write clean and well-documented code.
|
||||
## License 📜
|
||||
|
||||
4. **Commit your changes**:
|
||||
```bash
|
||||
git commit -m "Add: Feature description"
|
||||
```
|
||||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
|
||||
|
||||
5. **Push to your fork** and submit a pull request:
|
||||
```bash
|
||||
git push origin feature-name
|
||||
```
|
||||
|
||||
|
||||
|
||||
## License 📜
|
||||
|
||||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
||||
|
||||
|
||||
|
||||
<div align="center">
|
||||
💖 Thanks for being part of the Snigdha OS Web Dev journey! 🌟
|
||||
</div>
|
||||
<div align="center">Thanks for contributing to Snigdha OS Web Dev! 🌟</div>
|
||||
|
Reference in New Issue
Block a user