NDmorsalin / ndMorsalinProtfolio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React and Vite Boilerplate

This is a boilerplate project for creating React applications using Vite. It includes the following packages:

  • @smastrom/react-rating: A React component for rating and reviewing items.
  • blurhash: A library for generating BlurHash image placeholders.
  • daisyui: A utility-first CSS framework for rapidly building custom designs.
  • firebase: A cloud-based platform for building web and mobile applications.
  • react: A JavaScript library for building user interfaces.
  • react-blurhash: A React component for rendering BlurHash image placeholders.
  • react-dom: A package providing the DOM-specific methods for React.
  • react-icons: A library of icons for React applications.
  • react-router-dom: A library for implementing routing in React applications.
  • sweetalert: A library for creating beautiful and customizable alert and modal dialogs.
  • swiper: A modern slider library for touch-based devices.

Features

  • Pre-configured with React and Vite.
  • Integration with Firebase for backend services.
  • Component for rating and reviewing items.
  • Placeholder images using BlurHash.
  • Customizable alerts and modal dialogs.
  • Responsive and touch-friendly sliders.

Getting Started

To get started with this boilerplate, follow these steps:

  1. Clone the repository: git clone https://github.com/your-repo.git
  2. Install the dependencies: npm install
  3. Configure Firebase: Add your Firebase configuration details in the appropriate files.
  4. Start the development server: npm run dev
  5. Open your browser and navigate to http://localhost:3000 to see the app running.

Folder Structure

├── public
│   ├── vite.svg
│   └── 
├── src
│   ├── assets
│   │   ├── 
│   │   └── 
│   ├── components
│   │   ├── Blog
│   │   └── Home
│   ├── pages
│   │   ├── AboutUs
│   │   ├── Auth
│   │   ├── Blog
│   │   ├── Error
│   │   ├── Home
│   │   └── Profile
│   ├── Layout
│   │   ├── AuthLayout
│   │   ├── HomeLayout
│   │   └── Private
│   ├── router
│   │   └── Routes.jsx
│   ├── Shared
│   │   ├── Header
│   │   ├── Footer
│   │   └── Loading
│   ├── Utility
│   │   ├── Firebase
│   │   └── validator.js
│   ├── index.css
│   └── main.jsx
├── .gitignore
├── package.json
├── README.md
└── .env.local
  • The public folder contains the HTML file and other static assets.
  • The src folder contains the application's source code, including components, pages, and main entry points (App.js and index.js).
  • The .gitignore file specifies which files and directories should be ignored by version control.
  • The package.json file lists the project's dependencies and scripts.

Feel free to modify the folder structure and files according to your project's needs.

Scripts

The following scripts are available:

  • npm run dev: Starts the development server.
  • npm run build: Builds the production-ready app.
  • npm run serve: Serves the production build locally.
  • npm run lint: Runs the linter to check for code style issues.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. You can find more details in the LICENSE file.

About


Languages

Language:JavaScript 99.3%Language:CSS 0.5%Language:HTML 0.2%