Welcome to the Athlo Blitz project! This repository contains the frontend code for our dynamic sports and recreational facility management platform. Built using modern web technologies like React, TypeScript, and Vite, Athlo Blitz provides a seamless user experience for managing facility bookings, viewing availability, and handling various administrative functions.
Follow these steps to get the project up and running on your local environment.
Clone the repository:
[git clone https://github.com/your-repo/Athlo_Blitz.git](https://github.com/antudaa/Athlo_Blitz_Front-End.git)
cd Athlo_Blitz
Install dependencies:
npm install
# or
yarn install
Start the development server:
npm run dev
# or
yarn dev
Open your browser and navigate to http://localhost:5173
to view the application.
The project is structured for scalability and maintainability:
src/
: Contains all the source code for the application.components/
: Reusable React components.pages/
: Different page components for each route in the application.redux/
: Redux store configuration and slices for state management.types/
: TypeScript interfaces and types to ensure type safety.utils/
: Utility functions and helper methods.public/
: Static assets like images, fonts, etc.vite.config.ts
: Configuration file for Vite.Vite is used for fast development and build processes. The default configuration is set up in vite.config.ts
. To customize the configuration, refer to the Vite documentation.
ESLint ensures code quality and adherence to coding standards. To maintain code consistency:
Configure the top-level parserOptions
in .eslintrc.js
:
export default {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
// other rules...
}
Update ESLint rules:
plugin:@typescript-eslint/recommended
with plugin:@typescript-eslint/recommended-type-checked
or plugin:@typescript-eslint/strict-type-checked
.plugin:@typescript-eslint/stylistic-type-checked
for stylistic type checking.Install eslint-plugin-react
and add the following to the extends
list:
"extends": [
"plugin:react/recommended",
"plugin:react/jsx-runtime"
]
Tailwind CSS is used for styling the application. Ensure you have the proper Tailwind configuration in place:
tailwind.config.js
: Customize the Tailwind configuration to fit the design requirements.Deploy the application using a platform like Vercel. Make sure the vercel.json
file is properly configured for deployment. For more details on deployment, refer to the Vercel documentation.
Refer to the in-code documentation and comments for a better understanding of the components and their usage. Additionally, the project includes:
npm run dev
/ yarn dev
: Start the development server.npm run build
/ yarn build
: Build the application for production.npm run lint
/ yarn lint
: Run ESLint for code quality checks.npm run preview
/ yarn preview
: Preview the production build locally.Contributions are welcome! Please follow the contribution guidelines and ensure adherence to the code of conduct.
This project is licensed under the MIT License. See the LICENSE file for more details.
Developed with ❤️ by Antu_Das.