A responsive advice generator app built to experiment with HTMX. This project fetches random advice from the Advice Slip API and displays it dynamically on the page.
To run this project, you need the following installed:
-
Clone the Repository
$ git clone https://github.com/bittricky/advice-generator.git $ cd advice-generator
-
Install Dependencies If the project includes a
package.json
(e.g., for using Vite as a dev server):$ pnpm install
To serve the project locally:
-
Run the Development Server If you're using Vite:
$ pnpm run dev
-
Open in Your Browser Visit the following URL in your browser:
http://localhost:5173
If you are not using Vite or any build tools:
-
Open the
index.html
file directly in your browser, or serve it with a simple HTTP server. -
For a lightweight HTTP server, you can use Python:
$ python3 -m http.server
Then navigate to
http://localhost:8000
in your browser.