Giter Site home page Giter Site logo

finchat's Introduction

FINCHAT!

This is a simple test application which implements a chat with SignalR and it has a bot attached to it communicating to the chat using RabbitMQ.

Stack

- asp.net core 3.1
- dotnet core 3.1
- entity framework core
- asp.net identity core
- asp.net signalR
- docker and docker-compose

How to use

Docker

Start by making sure that you have the following ports free on your machine: 5000, 5001, 15672, 5672

The way to run is using the docker-compose files inside the folder named "docker". There are two files there, one name finchat_dependencies.yml and another one finchat_production.yml.

  • The finchat_dependencies.yml needs to be executed first and it is used to create the containers for Sql Server and RabbitMQ. Just go ahead and run docker-compose -f ./finchat_dependencies.yml up -d

    This command creates the docker container for RabbitMQ and Sql Server well and it tries to create the database used by the application, but it is a work in progress and it is not stable. So after the containers creation, connect to the Sql Server to check if the database has been created and if not, you can do that manually by using the script create-database-script.sql inside the sql folder, in the project root. It's possible to do the same using a Entity Framework migration, check it here . It is also good to chechk if is everything ok with RabbitMQ (http://localhost:15672).

Development

  • To run the application in debug, you'll need to provide to the web application (FinChat.Chat.Web) connection to a Sql Server database and to RabbitMQ, both of them you'll find in the file appsettings.Development.json, inside the project. Reminding that you can use the create-database-script.sql script to create the database or run an Entity Framework migration, just need to use the data project (FinChat.Chat.Data) on package manage console or using the ef core tools commandline.
  • You'll need to provide the connection settings to the bot project's (FinChat.ChatBots.StockQuotation) appsettings.Development.json too.
  • With everything setup with just need to start the (FinChat.Chat.Web) project and then the bot (FinChat.ChatBots.StockQuotation), necessarily in that order.

That's all!

finchat's People

Contributors

deyvisonramos 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.