abhiMishka / ProjectRescue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProjectRescue

commands to be executed to run the project-:

pip3 install django-cors-headers
pip3 install django-rest-framework
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver 
pip3 install channels_redis
docker run -p 6379:6379 -d redis:2.8

socket_url=new WebSocket("ws://127.0.0.1:8000/ws/notify/phone_number/");

The project will start on http://localhost:8000/home/

API'S-:

  1. /save_user/

    method-: POST

    body-:

        name-:String,
        phone_number-: Integer,
        detail-: JSON Object having keys and value. (example-: {"address":"415/12,jiya lal gate", "school":"BVM", "roll_numer":"10"} ),
        firebase_token-: String
     
  2. /save_message/

    method-: POST

    body-:

        phone_number-: Integer,
        message-:String
     

About


Languages

Language:JavaScript 86.2%Language:CSS 12.0%Language:HTML 1.2%Language:Python 0.7%