krishnans2006/strife · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
Strife
A Discord clone, written in Django.
Features
- Create Servers, channels, and roles
- Control user permissions
- Send/receive messages in real-time (no refreshing required!)
- Upload attachments, send emoji, etc.
- Customize your user profile
In Progress
- Reactions
- Message edits/deletions
Future Plans
- Message replies
- Markdown support
- Custom emoji
- Online/status indicators
- Direct messages
Setup
1. Clone the repository
git clone git@github.com:krishnans2006/strife.git
cd strife
2. Install dependencies
poetry install
3. Set up the database
poetry run python manage.py migrate
4. Set up live reload for development
poetry run python manage.py tailwind install
5. Run the server
poetry run python manage.py runserver
poetry run python manage.py tailwind start
(In two separate terminals at once).
File Structure
strife/apps/- Django functionalitychannels/emoji/home/messages/reactions/roles/servers/users/
settings/- Django project settingsstatic/- Static filesdefault-avatars/js/
templates/- Generic HTML templatestheme/- Tailwind configuration
App Structure
messages/migrations/- Database migrations (version control for database schema)templates/messages/- App-specific HTML templates__init__.pyadmin.py- Django admin configurationapps.py- Defines app properties (like the Django app_label)consumers.py- Non-HTTP request handling (Django Channels)models.py- Database modelsrouting.py- Non-HTTP routing (Django Channels)urls.py- HTTP URL routingviews.py- HTTP request handling