docker-compose up -d
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py loaddata DB.json
python3 manage.py runserver
Install node (https://nodejs.org/en/download/)
Navigate to /client
Run the command npm i
Navigate to /client
npm run dev
-
/api/v1/register/
- {POST}
- username
- password
- {POST}
-
/api/v1/token/
- {POST}
- username
- password
- {POST}
-
/api/v1/token/refresh/
- {POST}
- refresh='JWT refresh token'
- {POST}
-
/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'
- optional:
- {GET}
-
/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'
- {POST}
-/api/v1/categories
- {GET}
-/api/v1/categories/<category-id>
- {GET}