Steps to make the project run:
- mkdir chat_app
- pip install Django
- pip install djangorestframework
- cd chat_app
- git clone https://github.com/ggonzalez94/chat_app_django.git
- cd chat_app_django/message_app
- python manage.py runserver
- Use API (in browser default localhost:8000/)
Routes available:
-For accessing de admin page localhost:8000/admin
-To login as a user localhost:8000/auth/login
-To GET messages available to the user currently logged in localhost:8000/listar_mensajes
-To send a new message(Post) localhost:8000/mensajes
-To GET a list of users localhost:8000/users
In order to perform most of this actions you have to be logged in, otherwise you will see a permission denied message.
The project comes already with a few test messages and 3 users:
- User:admin Password:gugago94
- User:gustavo Password:gugago94
- User:gonzalez Password:gugago94