Cool Number Facts is a web application built with FastAPI that allows users to retrieve interesting facts about numbers. Users can enter a number, and the application will fetch a fascinating fact related to that number using the Numbers API.
You can access the live deployment of this application here.
- Enter a number to get a cool fact related to that number.
- Responsive design for both desktop and mobile users.
- Easy navigation with a "Go Back" button.
- Stylish user interface.
To run this application locally, follow these steps:
- Clone this repository:
git clone https://github.com/ghubrakesh/numfacts.git
- Change into the project directory:
cd cool-number-facts
- Install the required dependencies using pip:
pip install -r requirements.txt
- Start the FastAPI development server:
uvicorn app:app --reload
- Open your web browser and navigate to
http://localhost:8000
to use the application locally.
- Open the website: https://getcoolnumfacts.onrender.com
- Enter a number in the input field on the home page.
- Click the "Get the Fact" button.
- The application will fetch an interesting fact related to the entered number from the Numbers API and display it on the result page.
- Click the "Go Back" button to return to the home page and enter another number.
- FastAPI: A modern, fast (high-performance) web framework for building APIs with Python.
- Jinja2: A modern and designer-friendly templating engine for Python.
- Requests: A Python library for making HTTP requests.
Contributions are welcome! If you have any improvements, bug fixes, or feature requests, please open an issue or submit a pull request.