Update README.md

master
Corentin LEMAIRE 6 months ago
parent 452707cf6c
commit e2d29a29ad

@ -38,16 +38,26 @@ Then, type `python manage.py runserver` when you're in the repo root folder.
Now, you can go into http://localhost:8000/redis to access the project.
Don't try to go into http://localhost:8000/admin, you won't have the rights and it's only used for development mode. This helps us to add/remove data to test quicker.
Once a user is registered to a course, he's automatically subscribed to courses update for all courses he follows into the notifications page.
## Limitations
This is a one-user app... You can't log in with 2 users.
### Sessions
This app works with sessions. You have to play with this project with 2 browsers to test the pub/sub.
To test pub/sub, please follow these instructions:
Open a browser, register as a Teacher, create a course.
Open another browser, register as a Student, search your course, register to it, and go to notifications.
As the teacher, update, delete or publish a message from the course created.
As a student, you'll see instantly the message.
You can also do this with redis-cli. To do that, in a shell, type:
- `docker start redis-stack`
- `docker exec -it redis-stack bash`
@ -72,9 +82,18 @@ OR
---
### Expiration
Expiration of the course: The course expires after 2 minutes.
---
### Design
Design is not existing yet.
---
### Students management
As a teacher, you can't manage students registered to your course.
Loading…
Cancel
Save