Code Monkey home page Code Monkey logo

le_reddit's Introduction

Le Reddit Logo Le Reddit

Techology Stack

Azure JWT NPM React React Router TailwindCSS

Languages

JavaScript TypeScript C# .Net

Supported Browsers

Brave Edge Firefox Google Chrome Opera Safari

Dev Dependencies

Docker ESLint Babel

Table of Contents

Project Overview

This project is a Reddit clone that allows users to create, comment, and interact with forum topics. It includes separate services for sending notifications and checking service availability.

Features

User Interface (Web Role)

  • User registration
  • User login
  • User profile modification
  • Create new posts
  • Comment on posts
  • Search and sort posts by title
  • Delete posts or comments
  • Upvote and downvote posts

User Registration

Users register by providing:

  • First Name
  • Last Name
  • Address
  • City
  • Country
  • Phone Number
  • Email
  • Password
  • Profile Picture

Notification Service

  • Sends emails to subscribed users when a new comment is posted.
  • Uses separate Worker Role service called NotificationService (3 instances).
  • Utilizes services like Postmark or SendGrid for email delivery.

Health Monitoring Service

  • Separate Worker Role service called HealthMonitoringService (2 instances).
  • Monitors RedditService and NotificationService every 1-5 seconds.
  • Logs the status in a HealthCheck table.

Health Status Service

  • Web Role application for visual representation of service availability.
  • Displays uptime percentage for the last 24 hours.

Installation

  1. Clone the repository:

    git clone https://github.com/owlCoder/le_reddit.git
    cd le_reddit
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env with your configuration
  4. Run the application:

    npm start

Usage

  • Navigate to http://localhost:5173 in your browser.
  • Register a new user or log in with an existing account.
  • Create, view, and interact with posts and comments.

API Endpoints

User Endpoints

  • POST /register - Register a new user
  • POST /login - Log in a user
  • PUT /user/:id - Update user profile

Post Endpoints

  • POST /posts - Create a new post
  • GET /posts - Get all posts
  • GET /posts/:id - Get a specific post
  • PUT /posts/:id - Update a post
  • DELETE /posts/:id - Delete a post

Comment Endpoints

  • POST /posts/:postId/comments - Add a comment to a post
  • DELETE /comments/:id - Delete a comment

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature-branch)
  5. Create a new Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Danijel Jovanović - [email protected]

Project Link: https://github.com/owlCoder/le_reddit


Feel free to customize the links, images, and additional details to match your specific project needs.

le_reddit's People

Contributors

owlcoder avatar lundjo avatar moco2669 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.