Skip to content

giicoo/fastApi_Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastAPI_Chat

Stack:

Backend

  • FastAPI
  • SQLAlchemy
  • MongoDB

Frontend

  • HTML(Jinja2), CSS
  • JS(JQuery)

Functional:

  1. Registration and Login with hash password and OAuth2 with custom cookie.
  2. WebSoket chats with private messages
    • Send text
    • Receive text
    • Save chat history

How are you can launch this:

  1. Clone git repository: https://github.com/Inott-git/fastApi_Chat.git
  2. Download requirements -> pip install -r requirements.txt
  3. Get connection link for MongoDB(for example, from MongoDB Compass)
  4. Start app -> uvicorn main:root --reload
  5. You can see endpoint -> Docs
  6. The chat(first login or register) itself -> Home

!!! DON'T REGISTER WITH YOU REAL PASSWORD, BECAUSE DATABASE SAVE IN GIT!!!

  1. You can register 2 users(and add by id(number of account) in menu)

Project create for my education and i can guess, that it have a lot of weak spots :)


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published