Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 2.51 KB

File metadata and controls

49 lines (40 loc) · 2.51 KB

Adoptera ett husdjur

Description

The Adopt-a-Pet project is a web application built with Flask, a lightweight and flexible Python web framework. Flask provides the necessary tools and utilities to develop robust web applications, making it ideal for projects ranging from small-scale to medium-scale applications.

Features

Automatic updated lists on animals. Route Definitions: Define routes for different URLs using @app.route(). View Functions: Functions to generate HTML content for each route. Dynamic URL Building: Handle requests with dynamic URL segments. Data Retrieval: Interact with a pets module to fetch pet data. Error Handling: Return proper error messages and status codes. Server Startup: Start the Flask development server. Debug Mode: Enable debugging features. Host Configuration: Configure the server to listen on all network interfaces.

Technologies Used

Flask: A lightweight and versatile Python web framework. Python: The programming language used for backend development. HTML: Markup language for structuring web pages. CSS: Styling language for enhancing the visual presentation of web pages.

Installation

  1. Clone the repository: git clone https://github.com/your-username/project-name.git
  2. Install dependencies: pip install -r requirements.txt
  3. Set up the database: python manage.py db init, python manage.py db migrate, python manage.py db upgrade
  4. Start the server: python manage.py runserver

Usage

  1. Open the application in your web browser.
  2. To use the application you'll need to have Flask installed and run the code.
  3. Access the Application: Open a web browser and navigate to http://localhost:5000/.
  4. Browse Pets: On the homepage, you'll see links to browse different types of pets, such as dogs, cats, and rabbits. Click on any of these links to see a list of pets of that type.
  5. View Pet Details: When you click on a specific pet from the list, you'll be taken to a page displaying details about that pet, including its name, image, description, breed, and age.
  6. Explore Other Features: You can navigate back to the homepage or explore other types of pets using the links provided.

Contributing

This project was developed by Nina Losanthiah and Sandi Husic. Contributions and feedback are welcome from the community to improve and enhance the application further.

License

This project is licensed under the MIT License.

Contact

For any questions or inquiries, please contact us at [koranis.losanthiah@elev.ga.ntig.se or sandi.husic@elev.ga.ntig.se].