IOMirea-messenger is a university project of messenger developed by 6 people.
We were inspired by Discord, Telegram,
VKontakte and many other messenging platforms.
Main goals of this project are getting practice of developing APIs and working in team.
This repository contains code related to server side of the project.
Current project website: https://iomirea.ml
Other parts of the project can be found at:
- https://github.com/IOMirea/messenger-api: api
- https://github.com/IOMirea/messenger-client-android: Android client
- RESTful API
- OAuth2 authorization
- WebSocket events
- User applications registration (planned)
- CDN (planned)
- Secret chats and end-to-end message encryption (planned)
- Distribution and load balancing (planned)
- Web interface (planned, currently only registration, login and oauth2 related pages are implemented)
The latest version of IOMirea-server is hosted on https://iomirea.ml, you can run your own instance
by installing all dependencies listed in the next section, creating config/config.yaml
file from
config/config.yaml.example
template and launching run.sh
script.
IOMirea-server runs under nginx as well, example nginx configuration files can be found here
List of endpoints can be found at https://iomirea.ml/api/v0/endpoints
Reference: TODO
IOMirea uses API versioning. Current version is v0
.
Note: version v0
is still in development, expect frequent breaking changes.
Breaking changes would not happen inside the same API version after release of v1
.
You can omit API version, latest version will be used in this case (works only under nginx).
All objects have unique id, snowflake (Twitter snowflakes). You can extract object creation date from them.
IOMirea-server currently runs and tested only under Linux, but things might change in future.
IOMirea-server is built on top of aiohttp library,
uses redis for caching and postgresql as primary database.
Core requirements:
- Python v3.7+
You can install these dependencies using your system package manager.
Python requirements ar listed in:
requirements.txt
(for running server)requirements-dev.txt
(for running and working on server)
You can install python dependencies with pip: pip install -U -r requirements.txt
Feel free to open an issue or submit a pull request.
Note: pre-commit checks should be satisfied before submitting code.
pre-commit can be installed from requirements-dev.txt
and enabled by running pre-commit install
inside project repository. black, flake8, mypy and other tools are used to format and validate code.
Source code is available under GPL v3.0 license, you can get it here.