Words of Wisdom is a Vite + React app that fetches a piece of advice from the Advice Slip API. A new piece of advice is displayed every 30 seconds with the ability to request a new one or stop on the current advice.
- Clone the repository:
git clone https://github.com/jamesflores/Words-of-Wisdom.git
- Navigate to the project directory
- Configure your environment variables (create a Pexels API key):
export VITE_PEXELS_CLIENT_KEY=<your key here>
- Run the server:
npm run dev
Open your web browser and navigate to http://localhost:5173
to get a random piece of advice every 30 seconds.
Demo: https://wisdom.jamesf.xyz
This is currently deployed on the app platform by DigitalOcean.