This is a simple Reddit clone built using CSS, EJS, and Express. The purpose of this project is to provide a practice exercise for web developers who want to learn how to create a basic forum site.
- Create new posts and comment on existing ones
- Upvote or downvote posts and comments
- View posts and comments by category
- Search for specific posts or comments
- Clone the repository to your local machine.
- Install the required dependencies by running
npm install. - Run the server using
npm start. - Navigate to
http://localhost:8000in your web browser to view the site.
To create a new post, click on the "Create Post" button on the home page. You will be prompted to enter a title, category, and description for your post. Once you have entered the necessary information, click "Submit" to create your post.
To comment on an existing post, click on the post title to view the full post. Scroll down to the comment section and enter your comment in the text box provided. Click "Submit" to add your comment to the post.
To upvote or downvote a post or comment, click on the arrow icons next to the post or comment. The number next to the arrows indicates the current vote count for the post or comment.
To view posts by category, click on the category name in the navigation bar at the top of the page. This will display a list of all posts in that category.
To edit post if are logged correclty , you can modify the post just clincking in edit post.
To create a user you can just create a new user on the login page, click on the sign up . You will be able to create your on user
This Reddit clone does not use a real database. Instead, it uses a fake database implemented using JavaScript arrays. This allows you to practice building a website without having to worry about setting up a real database.
This project is not currently accepting contributions.
This project is not currently licensed.