Skip to content

PostHub is a simple web application that allows users to log in, create posts, and log out. It provides a platform for users to share their thoughts, ideas, and updates in a social media-like environment.

Notifications You must be signed in to change notification settings

Khairul25556/PostHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostHub

PostHub is a simple web application that allows users to log in, create posts, and log out. It provides a platform for users to share their thoughts, ideas, and updates in a social media-like environment.

Features

  • User Authentication: Users can log in with a username and password.
  • Post Creation: Once logged in, users can create posts with their name and content.
  • Post Display: Created posts are displayed on the page, showing the username, content, and timestamp.
  • Logout: Users can log out from the platform.

Demo

My GIF

Tech Stack

  • Frontend: HTML, CSS (using custom styling)
  • Backend: Node.js, Express.js
  • Database: Data is stored in local JSON files (data.json for login data, data2.json for posts).
  • View Engine: EJS (Embedded JavaScript templating)

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/Khairul25556/PostHub.git
  2. Navigate to the project folder:

    cd PostHub
  3. Install dependencies:

    npm install
  4. Run the server:

    npm start
  5. Open your browser and navigate to http://localhost:8080 to see the app in action.

Contributing

If you'd like to contribute to this project, feel free to fork it, make changes, and create a pull request.

About

PostHub is a simple web application that allows users to log in, create posts, and log out. It provides a platform for users to share their thoughts, ideas, and updates in a social media-like environment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published