The web is fundamentally interconnected and peer to peer. There’s no really great reason why we should all use facebook.com or google+ or myspace or something like that. If these social networks came up with an API you could probably link between them and use the social network you wanted. Furthermore you might gain some autonomy.
Thus in the spirit of diaspora https://diasporafoundation.org/ we want to build something like diaspora but far far simpler.
This blogging/social network platform will allow the importing of other sources of posts (github, twitter, etc.) as well allow the distributing sharing of posts and content.
- social-dist-wed.herokuapp.com
- Approved Login Credentials for Public:
- Username:
team02user
- Password:
user
http --auth team02admin:admin GET https://social-dist-wed.herokuapp.com/service/authors/
git clone
this repocd wedlab-cmput404-project
to navigate to the project folder- Create a python virtual environment in the project folder and activate the environment
- Run
pip install -r requirements.txt
to install project package dependencies - Install Docker engine
- Run
docker-compose up
to spin up your local postgres database server. If you want to access the database from a database browser, here is the details:- Host: localhost
- Port: 5432
- Database: postgres
- Username: admin
- Password: root
- Run
python manage.py migrate
to apply database migration to the postgres database server - Create a copy of the
.env.example
and name it.env
. Then:- Add a secret key (for example
SECRET_KEY = *
) - Change
USE_AWS_S3_MEDIA
tofalse
- [Not For Public] If you want to test locally but use the heroku postgres database server instead of the above local docker postgres database server, change
TEST
totrue
- Add a secret key (for example
- Create superuser:
- Local: Run
python manage.py create_admin
- [Not For Public] Heroku CLI: Run
heroku run -a social-dist-wed python manage.py create_admin
- Local: Run
- Run
heroku local
for non window user to start the application server. Access it athttp://localhost:8000
- Window doesn't support gunicorn so you'll have to do
heroku local -f Procfile.window
- Window doesn't support gunicorn so you'll have to do
- All the sign ups need to be approved by the superuser through admin panel before any login attempt
- Credentials of superuser for accessing
http://localhost:8000/admin
:- Username:
team02admin
- Password:
admin
- Username:
Name | GitHub |
---|---|
Jia Hui Tan (Lefan) | Jia Hui Tan |
Sandip Saha Joy | Sandip Saha Joy |
Lewis Ning | Lewis Ning |
Chen Xu | Chen Xu |
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Copyright 2022 [Jia Hui Tan] [Sandip Saha Joy] [Lewis Ning] [Chen Xu]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.