Weblive is a simple web application that allows users to stream live video content over the internet. It provides a user-friendly interface for streaming and viewing live video broadcasts. This project is built using Node.js, Nest.js, and Nextjs.
This is the backend code for this project, developed using Nest.js Weblive-Backend.
To run the project using Docker Compose, please follow these steps:
- Clone the frontend repository:
git clone https://github.com/TheCodby/weblive.git
- Change to the backend project directory:
cd weblive
- Create a
.env
file in the root directory of the froentend project with the following content:
NEXT_PUBLIC_API=http://127.0.0.1:3001
JWT_SECRET=
NEXT_PUBLIC_AWS_S3_BUCKET=
-
Run the following commands to start the frontend.
npm run build npm run start
Make sure to update the values accordingly if needed. -
Clone the backend repository:
git clone https://github.com/TheCodby/weblive-backend.git
- Change to the backend project directory:
cd weblive-backend
- Create a
.env
file in the root directory of the froentend project with the following content:
ORIGIN=
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASSWORD=
DATABASE_URL=
JWT_SECRET=
AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
ADMIN_PASSWORD=
- Run the following command to start the project with Docker Compose:
docker-compose up --build
This will build and start the necessary containers for the application, including the PostgreSQL database and the API server.
- Once the containers are up and running, open your web browser and navigate to
http://localhost:3000
to access the application.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name for your feature/fix.
- Make your changes and commit them with clear commit messages.
- Push your changes to your forked repository.
- Submit a pull request explaining your changes and the problem they solve.
Please ensure that your code adheres to the existing coding style and conventions used in the project.
This project is licensed under the MIT License. See the LICENSE file for more information.
If you have any questions, suggestions, or feedback, please feel free to reach out to the project maintainer:
- Email: [email protected]
- GitHub: TheCodby