Code Monkey home page Code Monkey logo

hn-services's Introduction

An Over-engineered version of Hacker News website

A web app, built with spring ecosystem and angular for learning purposes.

๐ŸŒ€ This Application is not-completed and you're welcome to clone, learn and develop it more. ๐ŸŒ€

Features

  • โœ… Using Postgres and MongoDB for database (you can use docker to run them)
  • โœ… Using Event Driven Architecture on top of Kafka
  • โœ… Using Service Discovery with Eureka server
  • โœ… Using API Gateway with Spring Cloud Gateway
  • โœ… Using OpenFeign for http calls between microservices

Roadmap

  • ๐Ÿšง Add Api Key Management with Keycloak for security and authentication.
  • ๐Ÿšง Using Helm or Kustomize for deploying the application on Kubernetes cluster.
  • ๐Ÿšง Add Resilience4j for circuit breaker and fallback.
  • ๐Ÿšง Add log aggregation with ELK stack.
  • ๐Ÿšง Add Istio for service mesh.

Technologies - Libraries

  • โœ”๏ธ eureka-server-discovery - Eureka is a service registry for resilient spring microservices.
  • โœ”๏ธ spring-cloud-gateway - Spring Cloud Gateway is a non-blocking, reactive, based on Spring 5, web server gateway.
  • โœ”๏ธ open-feign - Declarative REST Client for spring.
  • โœ”๏ธ spring-boot-starter-data-jpa - Spring Data JPA is a layer on top of the JPA API.
  • โœ”๏ธ lombok - Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.
  • โœ”๏ธ Junit5 - For unit testing and integration testing.
  • โœ”๏ธ docker-compose - Compose is a tool for defining and running multi-container Docker applications.
  • โœ”๏ธ Apache Kafka - Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
  • โœ”๏ธ Angular - A TypeScript-based open-source framework for building web applications.

System Architecture

Image

How to run

requirement:

  • Java version 17
  • Docker and docker compose
  • postgresql (you can run it in a docker container)

Steps:

  • Clone the repo: git clone https://github.com/aslukili/hn-services
  • run MongoDB docker image: docker run -d -p 27017:27017 --name=hn-post mongo
  • if you already have postgres installed, configure the .properties properties of each service that uses postures (user and notification services)
  • run kafka and zookeeper from docker compose: docker compose up
  • run the rest of the services individually using Maven.
  • run the front-end part: git clone https://github.com/aslukili/hn && cd hn && ng serve
  • Open the full-stack app in your browser at http://localhost:4200
  • The app is barely working :)

hn-services's People

Contributors

aslukili avatar

Stargazers

 avatar Mohamed Enn avatar Nabil Ait Nacer avatar

Watchers

Nabil Ait Nacer avatar  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.