Skip to content

balushi42/Senior-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Senior-Project

Quick setup(requires docker and docker-compose):

docker-compose up -d

python venv setup:

python3 -m venv venv

source venv/bin/activate

Django setup:

python3 -m pip install -r requirements.txt

python3 manage.py makemigrations

python3 manage.py migrate

python3 manage.py loaddata DB.json

Run backend server

python3 manage.py runserver

Node setup:

Install node (https://nodejs.org/en/download/)

Client setup:

Navigate to /client
Run the command npm i

Start client server:

Navigate to /client
npm run dev

Api endpoints:

  • /api/v1/register/

    • {POST}
      • email
      • username
      • password
  • /api/v1/token/

    • {POST}
      • username
      • password
  • /api/v1/token/refresh/

    • {POST}
      • refresh='JWT refresh token'
  • /api/v1/me/

    • {GET}
  • /api/v1/people/

    • {GET}
  • /api/v1/people/<user-id>

    • {GET}
  • /api/v1/friends/

    • {GET}
    • {POST}
      • friend='user id to add'
  • /api/v1/friends/pending

    • {GET}
    • {POST}
      • friend='user id to accept'
  • api/v1/videos/

    • {GET}
      • optional:
        • ?query='term'
  • /api/v1/videos/viral/

    • {GET}
  • /api/v1/videos/<video-id>

    • {GET}
  • /api/v1/reactions/<video-id>

    • {GET}
    • {POST}
      • emoji='emoji id'
      • text='text comment'
      • timestamp='video time stamp'
  • /api/v1/videos/upload

    • {POST}
      • title='video title'
      • category='category id'
      • file='uploaded multipart file'

-/api/v1/categories

  • {GET}

-/api/v1/categories/<category-id>

  • {GET}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •