Skip to content

Repository files navigation

Reddit Clone

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.

Features

  • 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

Installation

  1. Clone the repository to your local machine.
  2. Install the required dependencies by running npm install.
  3. Run the server using npm start.
  4. Navigate to http://localhost:8000 in your web browser to view the site.

Usage

Creating a new post

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.

Commenting on a 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.

Upvoting or downvoting a post or comment(NEED TO BE IMPLEMENTED)

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.

Viewing posts by category

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.

Edit post

To edit post if are logged correclty , you can modify the post just clincking in edit post.

Register

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

Fake Database

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.

Contributing

This project is not currently accepting contributions.

License

This project is not currently licensed.

About

This a practice of copy Reddit

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages