Skip to content

pankaj22/friends-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps to run the project:
1. Install python 2.7
2. Install pip.
3. Install virtualenv.
4. Setup virtualenv; command: "virtualenv myproject"
5. Activate virtualenv; command: "source myproject/bin/activate"
6. Install requirements; command: "pip install -r friends-django/requirements.txt"
7. Run project; command: "python friends-django/app/manage.py runserver"


DB Migrations:
1. Run your postgresql instance and create the database and user mention in settings file of the project.
2. Run command: "python app/manage.py makemigrations friends"; if 0001_initial file is not present in migration folder.
3. Run command: "python app/manage.py migrate friends"; if 0001_initial file is not present in migration folder.
4. Run command: "python app/manage.py sqlmigrate friends 0001_initial".


APIs:
1. "http://127.0.0.1:8000/friends/populateData" GET call to populate the dummy data.
2. "http://127.0.0.1:8000/friends/getUsers" POST call with request payload: {}.
3. "http://127.0.0.1:8000/friends/getFriends" POST call with request payload: {"user_id":1}
4. "http://127.0.0.1:8000/friends/getFriendsRecommendation" POST call with request payload: {"user_id":1}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages