Giter VIP home page Giter VIP logo

falcon's Introduction

Falcon ๐Ÿฆ

Terminal/PowerShell chat application.

Description ๐Ÿงพ

Falcon is terminal chat app built on .NET platform. It contains 2 projects for backend and client that are comunicating by REST API and SingalR. Client uses Terminal.Gui for TUI.

Get started ๐Ÿš€

Develop localy ๐Ÿ’ป

To develop falcon app first clone this repository using git:

git clone https://github.com/MaciekWin3/Falcon
cd Falcon
dotnet restore

After downloading project you will need to setup postgresql database and update appsettings.json in both projects.

Setup database ๐Ÿ’พ

This part of tutorial will be using Supabase as postgresql database provider

Falcon requires postgresql datbase for stroing users and messages. After database is created you need to update appsettings.json files. In server project under ConnectionStrings:FalconDB put your connection string that you acquired from Supabase. After that you need to setup Entity Framework with these command:

dotnet ef database update

Setup Server with Azure โ˜

The easiest way to host your falcon server is to use Azure services. To do this you need to open Visual Studio and click on Falcon.Server project and choose option Publish. Then follow the configurator and select all services as shown in the attached screenshots. In the described case, I chose the option of manually publishing the application. Once setup is complete, publish the app. After a few minutes, you should be able to view the applications at the URL indicated in Visual Studio and try to log in with the application. If you manage to log in, you have successfully configured the Falcon Server app. If you have already set up the database and updated configs, run both projects (client and server) with and check if you can login. If you are being redirected to lobby window, then congratulations you successfuly seted up Falcon Application ๐ŸŽ‰

Setup users account ๐Ÿค 

For now Falcon does not have dashboard to create new users so you have to do this with postman. Use this url [app_url]/api/auth/register (replace [app_url] with your app url) and paste this code body section:

{
  "username": "[username]",
  "password": "[password]"
}

Remember to replace [username] with users username and [password] with users password.

Download client app ๐Ÿ’ฌ

App is still in development and only way that you can use app is to setup development enviroment locally

To connect to server download falcon client app from nuget ussing this command from your terminal:

dotnet tool install ...

For this command to work you must have the latest .NET version installed on your machine.

Contribute ๐Ÿค

Contributions to project are welcome!

License ๐Ÿ“•

This project is licensed MIT

Author ๐Ÿ“

Maciej Winnik

falcon's People

Contributors

maciekwin3 avatar dependabot[bot] avatar

Stargazers

Karol avatar  avatar Piotr Kiedrowski avatar Norbert avatar Piotr Porzuczek avatar

Watchers

James Cloos 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.