-
Notifications
You must be signed in to change notification settings - Fork 0
pankaj22/friends-django
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published