Welcome to Reloadify! A super-fast, feather-light Python tool that automatically reloads your HTML, CSS, and JavaScript files in the browser while you code. Say goodbye to manual refreshing! 👋
- ⚡ Blazing Fast: Built for speed and efficiency.
- 🤏 Ultra-Lightweight: No heavy dependencies, just pure performance.
- 🔄 Live Reloading: Instantly see your changes in the browser.
- 🛠️ Customizable: Easily configure the file, directory, and port.
Getting started is as easy as pie! Just open your terminal and run:
pip install reloadifyOnce installed, navigate to your project's folder and let the magic happen!
reloadify [FILE][FILE](optional): This is your main HTML file. If you don't specify one,reloadifywill search the current directory and all subdirectories for.htmlfiles. If multiple.htmlfiles are found, it will prompt you to select one. If only one is found, it will be served automatically.
You can customize reloadify to fit your needs:
-
-d, --directory <PATH>: Tellreloadifywhich specific folder to watch for changes.Example:
# Watch the 'src' folder for changes reloadify -d ./src -
-p, --port <PORT>: Choose a custom port to run the server on. The default is4005.Example:
# Run on port 8000 reloadify -p 8000 -
-t, --timeout <SECONDS>: Automatically shut down the server after a specified number of seconds.Example:
# Shut down after 60 seconds reloadify -t 60
Here are a few ways you can use reloadify:
-
Serve
index.htmland watch its folder (the default way):reloadify
-
Serve a specific HTML file and watch its folder:
reloadify my_app/index.html
-
Serve
index.htmlbut watch a different folder for changes:reloadify index.html -d ./src
-
Serve
index.htmlon a different port:reloadify -p 8080
- Discord:
lousybook01💬 - GitHub: LousyBook94 🐙
- YouTube: @LousyBook01 📺
Contributions are welcome! If you'd like to help improve reloadify, please follow these steps:
- Fork the repository.
- Create a new branch.
- Set up a virtual environment:
python -m venv venv source venv/bin/activate - Install the dependencies:
pip install -r requirements.txt
- Make your changes.
- Run the tests:
pytest
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by LousyBook & Gemini.