A Full-Stack Web Application built with Express.js, EJS, and more, imitating key features of Quora.
- 🌱 Currently learning Full-stack Development & Security
- 📫 Reach me at jayy.choksi@gmail.com
This Quora Clone demonstrates how to build a simple question-and-answer style platform using Node.js and Express.js for the backend, with EJS templating for the front end. You can create posts, view them in a list, see each post’s details, and interact through basic actions like upvotes/downvotes.
- Create & View Posts: Users can easily create new posts and view existing ones.
- Responsive UI: Utilizes HTML/CSS (with EJS) to provide a clean, mobile-friendly design.
- Scalable Backend: Currently uses an in-memory array, but can easily integrate with databases like MongoDB.
- RESTful API: Organized routes for CRUD operations.
- Backend: Node.js, Express.js
- Frontend: EJS, HTML, CSS
- Database: (Placeholder) In-memory array or plug-in MongoDB/SQL
- Tools & Libraries:
- EJS templating
- RESTful APIs
- Middleware (e.g., body-parser, method-override)
- View All Posts: Displays posts with username and content.
- Create New Posts: Users can submit a form to add new posts instantly.
- View Post Details: Clicking a post shows detailed info.
- Upvote/Downvote: Basic interactive feature for voting.
- Responsive UI: Clean design for desktop and mobile devices.
Here are some application highlights in both Light and Dark modes.
Light Mode | Dark Mode |
---|---|
Home Page |
Home Page |
Create New Post |
Create New Post |
Edit Page |
Edit Page |
Show Page |
Show Page |
- Clone the repository:
git clone https://github.com/justtcallmejayy/quora-clone.git
- Navigate into the folder:
cd quora-clone
- Install dependencies:
npm install
- Start the server:
The app should default on
npm start
http://localhost:8080
(or a port specified in your environment).
- User Authentication: Add login/logout functionality to secure post creation or voting.
- Database Integration: Migrate from in-memory data to a real database (MongoDB or PostgreSQL).
- Comment System: Allow users to comment on posts.
- Search/Filter: Implement search by keywords or username.
Feel free to explore, contribute, and share feedback!
© 2024 Quora Clone. All rights reserved.