Code Monkey home page Code Monkey logo

serverlesschatroomaws-gcp's Introduction

Background

More info here: https://coderecipe.ai/architectures/34142257

Problem Statement:

Build a simple but scalable chat room like gitter with default sentiment analysis that detects negative sentences.

Solution:

Leverage API Gateway's Websocket API to send and receive messages in real time without hosting a dedicated server, and Google’s Natural Language API to analyze sentiment of messages.

Functional Requirements:

Chatroom where multiple users can connect and chat in real time

Provide sentiment analysis for each chat

Performance Requirements:

Simultaneous connect with multiple users and send and receive multiple messages

Able to scale automatically without worry about setting up servers to maintain connections

Assumptions:

Assuming each users do not get to see the messages sent before they join

prerequisites

Run the following commands from the services/chatroom folder:

npm install pip install -r requirements.txt

Deploy

Fill in the services/chatroom/config.<stage>.json file with the correct google cloud credentials which can be obtained from here. serverless deploy --stage --CONNECTIONS_TABLE

serverlesschatroomaws-gcp's People

Contributors

coderecipe-dev avatar

Watchers

Justin Iravani 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.