The part of the backend that describes the basic functionality of the messenger
870
This project is written in the latest version of Python 3.11 along with the FastAPI framework
All code is asynchronous like my previous projects
NoSQL database MongoDB is connected via official images
Written easy PyTest tests for a simple notion that everything is working properly
CI/CD actions on pull request:
There are 2 main kinds of APIs here:
For User:
For Messages:
Also added a manifest for kubernetes (which I will still improve)
You need to create an .env file at the docker-compose file level and write the variables
For this purpose, a ready-made Docker-Compose file has already been built using:
image vyacheslavshrot/messenger:latest:
image mongo:
image mongo-express:
After installing the environment, we run
docker-compose up -d
Go to the mongo-admin panel ( mongo-express container ):
Create the base messenger
Create 3 collections:
users
chat
messages
And at the level of docker-compose.yml create a folder mongodb_data where our data from the database will be stored
Content type
Image
Digest
sha256:914d382c1…
Size
395.5 MB
Last updated
over 2 years ago
docker pull vyacheslavshrot/messenger