/InstaTonne

distributed social media app for CMPUT404 :)

Primary LanguagePythonApache License 2.0Apache-2.0

InstaTonne

InstaTonne is a revolutionary social networking app that embraces the interconnectedness and the peer-to-peer nature of the web.

Join us in redefining the social networking experience by taking control of your own content and connections. Welcome to InstaTonne!

Working Website

Access the live website at: https://cmput404-group6-instatonne.herokuapp.com/app/

Features

  • Importing posts from various sources like GitHub and other social networks
  • Distribution and sharing of posts and content across different servers
  • Aggregating friends' posts from other servers
  • Inbox model for sharing posts directly with friends

Technologies

  • Django
  • Vue
  • Deployed on Heroku
  • JavaScript
  • Python3

How to run locally

  • Clone this repository
  • Install dependencies with pip install -r requirements.txt

Run admin

  • Load data
    • python3 manage.py makemigrations
    • python3 manage.py migrate --run-syncdb
    • python3 manage.py loaddata initial_data.json
  • Run the Django server with python manage.py runserver
  • Access the admin at http://127.0.0.1:8000/

Run app

  • Open a new terminal and change to the InstaTonne-Frontend directory
  • Run npm i then npm run dev
  • Access the locally running app with sample data at http://127.0.0.1:5173/

Running Backend Tests

Run tests with python manage.py test

Running Frontend Tests

To reset the test db:

  1. delete pycache from Instatonne-Apis, and the db file
  2. python3 manage.py makemigrations InstaTonneApis
  3. python3 manage.py migrate --run-syncdb
  4. python3 manage.py loaddata test_data.json

To run the E2E tests: 5. Run backend: python3 manage.py runserver 6. Run frontend: /InstaTonne-Frontend npm run dev 7. Run Cypress: From InstaTonne-Frontend: npx cypress open

OpenAPI Specification

Find the OpenAPI Specification at: https://cmput404-group6-instatonne.herokuapp.com/docs/

Video

Watch our demonstration video at: (add link to video)

Contributors

  • culberso
  • lmvaugha
  • mrudolf
  • diep
  • rjg

License

This project is forked from CMPUT404-project-socialdistribution and is released under the W3C Software and Document Short Notice.

     
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
     
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
     
The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)." 
     
Disclaimers
     
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
     
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
     
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.```