Giter Club home page Giter Club logo

challenge--kafka-sockets's Introduction

Starship Kafka App

Description

This app is composed of:

Backend

A NestJS hybrid microservice handling http requests, Kafka events, and web socket events. A basic starship class is used to mock a datastore. - It exposes the following routes: - GET /starships: Returns a list of starships - GET /starships/:id: Returns a starship with the maching id - POST /starships: Creates a starship - Body: { model: string, name: string} - DELETE /starships/:id:

Front-end

A react create-react-app which lists page 1 of the starships from SWAPI. Opens a socket to the server listening to the starships create, update, and delete events.

Installation

Prerequisites:

  • Docker
  • Node 12
  • Yarn or NPM
  1. Install all prerequisites
  2. Clone this repo
  3. cd to root directory
  4. Install dependencies in both /client and /server by running yarn or npm install in each directory
  5. Start kafka in a new terminal window by running docker-compose up in /docker
    • port 9094 by default
  6. Start the server in a new terminal by running yarn start in /server
    • port 3001 by default, websocket on 4001
  7. Start the client in a new terminal by running yarn start in /client
    • port 3000 by default

challenge--kafka-sockets's People

Contributors

geoffwhitehead avatar

Watchers

 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.