web-hub is the central hub for the xx network, where all applications, documentation, tools, partnerships, exchanges, dashboards, and other relevant information are gathered. It provides an intuitive interface for users to seamlessly interact with different web services and access comprehensive resources related to the xx network.
To get started with web-hub, follow these steps:
-
Clone the repository:
git clone https://github.com/xxfoundation/web-hub.git
-
Navigate to the project directory:
cd web-hub -
Install the necessary dependencies:
yarn
To start the application in development mode, use:
yarn startThe development server will run on port 3000. Open your browser and navigate to http://localhost:3000 to access the application.
The following scripts are available in the package.json file for development and production tasks:
start: Launches the development server.build: Compiles the project usingreact-scripts.eject: Ejects the create-react-app configuration.lint: Checks the code for quality issues using ESLint.
Key dependencies used in this project include:
- React and React-DOM: For building the user interface.
- @emotion/react and @emotion/styled: For styling components.
- @mui/material: Provides Material-UI components.
- react-router-dom: For routing.
For a comprehensive list, refer to the package.json file.
The project is configured with tools and standards to ensure smooth collaboration and efficient development.
The project is configured to use TypeScript, with settings defined in tsconfig.json. It also uses ESLint and Prettier for code quality and formatting.
src/
├── @types # TypeScript definitions and type augmentations.
├── App.tsx # Root React component.
├── assets # Static assets like images, logos, and icons.
├── components # Modular and reusable UI components.
├── content # Content files and data.
├── hooks # Custom React hooks for shared logic.
├── index.tsx # Entry point for the React application.
├── pages # Page components representing application routes.
├── theme # Configuration for the Material-UI theme.
└── types.ts # Application-wide TypeScript types.
The project uses react-scripts for builds:
yarn buildBuild artifacts are output to the build/ folder.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix (e.g.,
feature/add-new-featureorbugfix/fix-issue). - Commit your changes with descriptive messages.
- Push your branch to your fork.
- Submit a pull request (PR) with the following structure:
- Changes: Summary of changes made.
- Reason: Explanation of why these changes are necessary.
- Tag: Choose from the following:
bug: Fixes a bug.feature: Adds new functionality.improvement: Enhances existing functionality.docs: Documentation updates.test: Adds or modifies tests.refactor: Code restructuring without functional changes.chore: Minor maintenance tasks.style: Formatting changes with no code logic alterations.performance: Performance optimizations.
- Follow the repository's coding style.
- Write clear commit messages (e.g., "Fix: Resolved issue with component rendering").
- Include relevant tests for your changes.
- Ensure no existing functionality is broken by your contributions.
This project is licensed under the MIT License. See the LICENSE file for more details.
If you have questions, need support, or wish to discuss features, contact:
📧 [devops@xx.network]