Skip to content

Raj160907/instawork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

instawork

Team Members Project

APIs -

{
    "is_success": true,
    "message": null,
    "response_data": [
        {
            "id": 1,
            "first_name": "Rashmi",
            "last_name": "Chauhan",
            "phone_number": "7326628770",
            "email": "[email protected]",
            "role": "Admin"
        },
        {
            "id": 2,
            "first_name": "",
            "last_name": "",
            "phone_number": "7607846774",
            "email": "",
            "role": "Admin"
        },
        {
            "id": 3,
            "first_name": "Satish",
            "last_name": "Shekhar",
            "phone_number": "9148450813",
            "email": "[email protected]",
            "role": "Admin"
        },
        {
            "id": 4,
            "first_name": "Satiadasadsadsh",
            "last_name": "Shadssdasekhar",
            "phone_number": "9148450814",
            "email": "[email protected]",
            "role": "Admin"
        },
        {
            "id": 5,
            "first_name": "Satish",
            "last_name": "Shekhar",
            "phone_number": "9148450815",
            "email": "[email protected]",
            "role": "Admin"
        },
        {
            "id": 6,
            "first_name": "Satish",
            "last_name": "Shekhar",
            "phone_number": "9148450816",
            "email": "[email protected]",
            "role": "Admin"
        },
        {
            "id": 8,
            "first_name": "SatishczxSC",
            "last_name": "ShekharcXxzc",
            "phone_number": "9148450812",
            "email": "[email protected]",
            "role": "Regular"
        },
        {
            "id": 10,
            "first_name": "Rashmi",
            "last_name": "Chauhan",
            "phone_number": "7326628771",
            "email": "[email protected]",
            "role": "Regular"
        },
        {
            "id": 11,
            "first_name": "Satish",
            "last_name": "Shekhar",
            "phone_number": "9148450822",
            "email": "[email protected]",
            "role": "Regular"
        },
        {
            "id": 12,
            "first_name": "Satiadasadsadsh",
            "last_name": "Shadssdasekhar",
            "phone_number": "",
            "email": "",
            "role": "Regular"
        }
    ]
}
- request
  {   
     "first_name": "Satish",
    "last_name": "Shekhar",
    "phone_number": "9148450822",
    "email": "[email protected]",
    "role": 2
  }
 - response
{
    "is_success": true,
    "message": null,
    "response_data": {
        "id": 11,
        "first_name": "Satish",
        "last_name": "Shekhar",
        "phone_number": "9148450822",
        "email": "[email protected]",
        "role": "Regular"
    }
}
- request
          {   
                "id":9,
                "first_name": "SatishczxSC",
                "last_name": "ShekharcXxzc",
                "phone_number": "9148450812"
           }
 - response
{
    "is_success": true,
    "message": [
        "Member details updated!"
    ],
    "response_data": {
        "id": 9,
        "first_name": "SatishczxSC",
        "last_name": "ShekharcXxzc",
        "phone_number": "9148450812"
    }
}
response
{
    "is_success": true,
    "message": [
        "Member Deleted!"
    ],
    "response_data": null
}

Steps to run the application:-

  • clone the project - git clone https://github.com/Raj160907/instawork.git
  • create and start a virtual environment - virtualenv env -p python3
  • Activate virtual environment - source env/bin/activate
  • Install the project dependencies: - pip install -r requirements.txt
  • create a mysql db and add the credentials to settings.py -
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'db_name',
        'USER': 'db_user',
        'PASSWORD': 'db_password',
        'HOST': 'localhost',
        'PORT': '3306'
    }
}
  python manage.py makemigrations
  python manage.py migrate
  python manage.py runserver

About

Team Members Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published