GithubHelp home page GithubHelp logo

alka-2022 / post_comment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9.23 MB

Python 97.37% HTML 0.04% C 0.48% C++ 1.72% Batchfile 0.01% Assembly 0.02% Cython 0.15% JavaScript 0.07% CSS 0.04% PowerShell 0.11%

post_comment's Introduction

Post-Comments Service

Overview

The Post-Comments Service is a web application built with Flask that enables users to create posts and add comments to existing posts. It offers a user-friendly interface for managing posts and comments stored in a database.

Architecture

The application follows a client-server architecture:

  • Client Side: Utilizes HTML, CSS, and JavaScript to create the user interface.
  • Server Side: Implemented with Python and Flask to handle HTTP requests and interact with the database.

Features

  • Create new posts with custom text.
  • Add comments to existing posts.
  • Supports basic text formatting (bold, italics, hyperlinks) in comments.

Setup and Run

To set up and run the application locally, follow these steps:

  1. Clone the Repository:

    git clone <repository-url>
    cd post-comments-service
  2. Install Dependencies:

    pip install -r requirements.txt
    
  3. Initialize the Database: Execute the create_tables() function in app.py to create the necessary database tables.

  4. Run the Application:

    python app.py
    
  5. Access the Application: Open your web browser and navigate to http://127.0.0.1:5000 to access the application.

Special Instructions

  • Ensure Python is installed on your system.
  • The application utilizes an SQLite database, eliminating the need for additional database setup.
  • JavaScript enhances the user interface and provides dynamic functionality.

Dependencies

  • Python (3.x recommended)
  • Flask
  • Flask-SQLAlchemy

post_comment's People

Contributors

alka-2022 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.