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.
- 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.
- 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)
-
Clone the repository:
git clone https://github.com/Khairul25556/PostHub.git
-
Navigate to the project folder:
cd PostHub
-
Install dependencies:
npm install
-
Run the server:
npm start
-
Open your browser and navigate to
http://localhost:8080
to see the app in action.
If you'd like to contribute to this project, feel free to fork it, make changes, and create a pull request.