beluga-live-tracker
- Stars
- 8
- Language
- JavaScript
- Updated
React
A modern React-based project utilizing the latest frontend technologies and tools for building responsive web applications.
š Features
- React 18 - React version with improved rendering and concurrent features
- Vite - Lightning-fast build tool and development server
- Redux Toolkit - State management with simplified Redux setup
- TailwindCSS - Utility-first CSS framework with extensive customization
- React Router v6 - Declarative routing for React applications
- Data Visualization - Integrated D3.js and Recharts for powerful data visualization
- Form Management - React Hook Form for efficient form handling
- Animation - Framer Motion for smooth UI animations
- Testing - Jest and React Testing Library setup
š Prerequisites
- Node.js (v14.x or higher)
- npm or yarn
š ļø Installation
-
Install dependencies:
npm install # or yarn install -
Start the development server:
npm start # or yarn start
š Project Structure
react_app/
āāā public/ # Static assets
āāā src/
ā āāā components/ # Reusable UI components
ā āāā pages/ # Page components
ā āāā styles/ # Global styles and Tailwind configuration
ā āāā App.jsx # Main application component
ā āāā Routes.jsx # Application routes
ā āāā index.jsx # Application entry point
āāā .env # Environment variables
āāā index.html # HTML template
āāā package.json # Project dependencies and scripts
āāā tailwind.config.js # Tailwind CSS configuration
āāā vite.config.js # Vite configuration
š§© Adding Routes
To add new routes to the application, update the Routes.jsx file:
import { useRoutes } from "react-router-dom";
import HomePage from "pages/HomePage";
import AboutPage from "pages/AboutPage";
const ProjectRoutes = () => {
let element = useRoutes([
{ path: "/", element: <HomePage /> },
{ path: "/about", element: <AboutPage /> },
// Add more routes as needed
]);
return element;
};
šØ Styling
This project uses Tailwind CSS for styling. The configuration includes:
- Forms plugin for form styling
- Typography plugin for text styling
- Aspect ratio plugin for responsive elements
- Container queries for component-specific responsive design
- Fluid typography for responsive text
- Animation utilities
š± Responsive Design
The app is built with responsive design using Tailwind CSS breakpoints.
š¦ Deployment
Build the application for production:
npm run build