This repository hosts the source code for a straightforward Video Storing Platform. The platform is divided into two major components:
-
Backend: Developed using Django Rest Framework, this component handles the server-side logic, database management, and API endpoints for video management.
-
Frontend: Built with Vue.js, this part of the project provides a user-friendly interface for uploading, viewing, and managing videos on the platform.
-
backend/
contains the Django backend code for managing video data, authentication, and API endpoints. It also includes arequirements.txt
file, listing the required Python packages and dependencies for the backend. -
frontend/
comprises the Vue.js frontend code for creating an interactive and engaging user interface for the Video Storing Platform.
To set up and run the project, follow these steps:
-
Navigate to the
backend/
directory:cd backend
-
Create a virtual environment (recommended) and activate it:
python -m venv venv source venv/bin/activate
-
Install the required Python packages from the requirements.txt file:
pip install -r requirements.txt
-
Do not forget to add .env file - these are the environment variables you should have:
JWT_SECRET = add here JWT_ALGORITHM = add here DB_USERNAME = add here DB_PASSWORD = add here DB_HOST = add here DB_PORT = add here DB_NAME = add here
-
Run migrations to set up the database:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
The Django backend should now be accessible at http://localhost:8000/.
- Navigate to the frontend/ directory:
python manage.py runserver
- Make sure you have Node.js and npm installed on your system.
- Install the required frontend dependencies:
npm install
- Start the Vue.js development server:
npm run serve
The Vue.js frontend should now be accessible at http://localhost:8080/.