Hexgraph is a simple web application built with Flask and Quill. It allows users to create and view posts with rich text formatting. This application uses a lightweight database client to store posts and provides a clean, modern user interface for interacting with the posts.
- Create Posts: Users can create new posts with a title and rich text content using the Quill editor.
- View Posts: Users can view individual posts with their title and formatted content.
- Responsive Design: The application is designed to be user-friendly and responsive.
- Flask: A lightweight WSGI web application framework for Python.
- Quill: A modern WYSIWYG editor built for the web.
- FlashSQL: A lightweight database for storing post data.
- HTML/CSS: For building the web pages and styling them.
To get Hexgraph up and running on your local machine, follow these steps:
- Python: Make sure you have Python installed. You can download it from python.org.
- pip: Python's package installer.
-
Clone the Repository
git clone https://github.com/yourusername/hexgraph.git cd hexgraph
-
Create a Virtual Environment
python -m venv venv
-
Activate the Virtual Environment
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install Dependencies
pip install Flask pip install FlashSQL
-
Run the Application
python app.py
The application will start and be available at
http://127.0.0.1:1020
.
-
Access the Application
Open a web browser and navigate to
http://127.0.0.1:1020
to view the application. -
Create a Post
- Enter a title for the post in the "Post Title" field.
- Use the Quill editor to write the content of the post.
- Click "Create Post" to submit the form. You will be redirected to the post's view page.
-
View a Post
- After creating a post, you'll be automatically redirected to the post's page.
- You can also view posts by navigating to
http://127.0.0.1:1020/post/<post_id>
, replacing<post_id>
with the actual ID of the post.
Feel free to submit issues, fork the repository, and create pull requests. All contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.