Located at: https://www.distribution.social/
API at: https://www.distribution.social/api/
AUTHORIZATION: BASIC
username: server1
password: 123
1. CMPUT404W23T00 (Team Yoshi)
GITHUB: https://github.com/CMPUT404-Big-Yoshi-Social-Network/yoshi-connect
API: https://yoshi-connect.herokuapp.com/
AUTHORIZATION: BASIC
username: goomba-yoshi
password: 123
2. CMPUT404W23T01 (Team peer2pressure)
GITHUB: https://github.com/Peer2Pressure/Peer2Pressure
API: https://p2psd.herokuapp.com/
AUTHORIZATION: BASIC
username: p2padmin
password: p2padmin
3. CMPUT404W23T03 (Team BiggerYoshi)
GITHUB: https://github.com/CMPUT404W23-bigger-yoshi/CMPUT404-project-socialdistribution
API: http://bigger-yoshi.herokuapp.com/api/
AUTHORIZATION: No AUTH
https://drive.google.com/drive/folders/1bRVYhAcmzWWbAQxHKvU-swIsFxlX3Ggw
We have a webservice API that can be used, with the correct authentication, to
interact with our website. This API is used by other groups to send authors on
our site.
Our API Document is available on https://www.distribution.social/swagger
We have test cases for API and Model testing.
To run tests: python manage.py test
These tests check if our API and models are working properly.
We used AJAX to show local and foreign profile. We used AJAX when liking and commenting things. We used AJAX for getting posts, comments, and likes. We used AJAX because we wanted it on the fly and request data from foreign servers which takes some time to arrive.
Setting up a virtual environment:
python -m venv venv
Activate the virtual environment:
source venv/bin/activate
Install the requirements:
pip install -r requirements.txt
To run: python manage.py runserver
To run tests: python manage.py test
-
Create a new app on Heroku https://dashboard.heroku.com/new-app.
-
Choose an App Name and Region.
-
Click the Deploy tab
-
Clone our repository https://github.com/distribution-social/SocialDistribution.git
-
Using Heroku Git
- Login to Heroku
$ heroku login
- Add the Heroku remote
heroku git:remote -a app-name
- Login to Heroku
-
Using GitHub
- Fork our repository: https://github.com/distribution-social/SocialDistribution
- Search for the repository
- Click Connect beside the repository you would like to connect
MIT License
Copyright (c) 2023 Ronggang Cui, Nick Wielgus, Saadman Islam Khan, Daryna Chernyavska, Justin Monteza
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The template posts.html and static posts.css are derived from html examples thus parts of these files is Copyright © 2023 bootdey.com Under the MIT License https://www.bootdey.com/snippets/view/bs4-s
Refrences for views.py:
Stackoverflow Answer
Title: django open specific html tab in response
https://stackoverflow.com/questions/32564742/django-open-specific-html-tab-in-response
https://stackoverflow.com/a/32564970
Author: Alasdair https://stackoverflow.com/users/113962/alasdair
Stackoverflow Answer
Title: How can I find the union of two Django querysets?
https://stackoverflow.com/questions/4411049/how-can-i-find-the-union-of-two-django-querysets
https://stackoverflow.com/a/4412293
Author: Jordan Reiter https://stackoverflow.com/users/255918/jordan-reiter
Stackoverflow Answer
Title: How do I do an OR filter in a Django query?
https://stackoverflow.com/questions/739776/how-do-i-do-an-or-filter-in-a-django-query
https://stackoverflow.com/a/739799
Author: Alex Koshelev https://stackoverflow.com/users/19772/alex-koshelev