Stretch My Time Off is a tool designed to help you optimize your vacation days by aligning public holidays and personal leave. This project was generated entirely with ChatGPT in a code editor designed for AI-assisted development.
Website: https://stretchmytimeoff.com
- About the Project
- Features
- Tech Stack
- Installation
- Usage
- Algorithm
- Contributing
- License
- Acknowledgments
This project was created to efficiently manage vacation days by aligning them with public holidays. It was developed using the Cursor IDE with GPT-4o and is hosted on Vercel with Cloudflare.
- Country-Specific Holidays: Fetches public holidays for your country.
- Optimized Days Off: Calculates the best use of personal leave days.
- Interactive Calendar: Visualizes holidays and optimized days off.
- Responsive Design: Compatible with desktop and mobile devices.
- Framework: SvelteKit
- Programming Language: JavaScript
- Styling: CSS
- Hosting: Vercel
- CDN and Security: Cloudflare
- IDE: Cursor IDE
-
Clone the repository:
git clone https://github.com/zachd/stretch-my-time-off.git
-
Navigate to the project directory:
cd stretch-my-time-off
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
Access the application at http://localhost:3000
. Enter your country to view public holidays and plan your time off using the interactive calendar.
The algorithm optimizes personal leave days to maximize consecutive days off:
- Identify Public Holidays and Weekends.
- Find Gaps between these days.
- Rank Gaps by efficiency.
- Select Days Off to fill gaps.
- Calculate Consecutive Days Off.
graph TD;
A[Start] --> B[Identify Public Holidays and Weekends]
B --> C[Find Gaps Between Days Off]
C --> D[Rank Gaps by Efficiency]
D --> E[Select Days Off to Fill Gaps]
E --> F[Calculate Consecutive Days Off]
F --> G[End]
Contributions are welcome! Open an issue or submit a pull request for improvements or new features.
Distributed under the MIT License. See LICENSE
for more information.
- SvelteKit: For the framework.
- Vercel: For hosting.
- Cloudflare: For CDN and security.
- Cursor IDE and GPT-4o: For development assistance.
Disclaimer: This project was 100% generated with ChatGPT out of pure interest, using a code editor designed for AI-assisted development.