This is a simple web application built with Flask. The project includes dynamic routes for user profiles and posts, with a basic form for navigating to different user pages.
- Responsive navigation for mobile devices
- Dynamic routing for:
- User profiles (
/user/<username>
) - Posts (
/post/<post_id>
)
- User profiles (
- A user overview page where you can type in a username and be redirected to that user's profile.
- Simple CSS styling
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git cd your-repository
-
Install Flask
-
Run the Flask app:
python app.py
-
Open a browser and navigate to
http://127.0.0.1:5000/
.
- User Overview: A form where you can enter a username and get redirected to the corresponding user's profile page.
- Post Page: Displays the content of a post based on the post ID. You can type in the id in the link and then it changes on the page.
- User Profile:
- Navigate to any user profile by accessing
/user/<username>
. - The username is dynamic and changes based on the input provided.
- Navigate to any user profile by accessing
- Post:
- Access any post by navigating to
/post/<post_id>
, wherepost_id
is a number.
- Access any post by navigating to