Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Merge remote-tracking branch 'origin/develop' into webv2

Gabe Kangas7f01b86c8e8e
diff --cc .github/workflows/automated-end-to-end-api.yaml
index daa100e286,acd26b5696..b65eab80ab
--- a/.github/workflows/automated-end-to-end-api.yaml
+++ b/.github/workflows/automated-end-to-end-api.yaml
@@@ -3,28 -3,22 +3,33 @@@ name: Automated API test
on:
push:
paths-ignore:
- - "webroot/**"
- - "web/**"
+ - 'webroot/**'
+ - 'web/**'
+ pull_request:
+ paths-ignore:
- - "webroot/**"
- - "web/**"
++ - 'webroot/**'
++ - 'web/**'
+
jobs:
- api:
+ test:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-go@v3
+ - uses: earthly/actions-setup@v1
+ with:
+ version: 'latest' # or pin to an specific version, e.g. "v0.6.10"
+
+ - name: Earthly version
+ run: earthly --version
+
+ - name: Set up QEMU
+ id: qemu
+ uses: docker/setup-qemu-action@v2
with:
- stable: "false"
- go-version: "1.17.2"
+ image: tonistiigi/binfmt:latest
+ platforms: all
+
+ - uses: actions/checkout@v3
+
- name: Run API tests
- run: cd test/automated/api && ./run.sh
+ run: earthly +api-tests
diff --cc README.md
index 4e4e4f5088,f0e724a3cc..8ddbac7b59
--- a/README.md
+++ b/README.md
@@@ -44,7 -44,7 +44,7 @@@
</a>
</p>
--Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server for running your own live streams similar in style to the large mainstream options. It offers complete ownership over your content, interface, moderation and audience. <a href="https://watch.owncast.online">Visit the demo</a> for an example.
++Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server for running your own live streams similar in style to the large mainstream options. It offers complete ownership over your content, interface, moderation and audience. <a href="https://watch.owncast.online">Visit the demo</a> for an example.
<div>
<img alt="GitHub all releases" src="https://img.shields.io/github/downloads/owncast/owncast/total?style=for-the-badge">
@@@ -59,7 -59,7 +59,6 @@@
</a>
</div>
--
---
<!-- GETTING STARTED -->
@@@ -76,32 -76,25 +75,33 @@@ OBS, Streamlabs, Restream and many othe
## Building from Source
+Owncast consists of two projects.
+
+1. The Owncast backend written in Go.
+1. The frontend written in React.
+
+[Read more about running from source](https://owncast.online/docs/building/).
+
+### Backend
+
+The Owncast backend is a service written in Go.
+
- 1. Ensure you have a c compiler installed.
+ 1. Ensure you have pre-requisites installed.
- - C compiler, such as [GCC compiler](https://gcc.gnu.org/install/download.html) or a [Musl-compatible compiler](https://musl.libc.org/)
- - [ffmpeg](https://ffmpeg.org/download.html)
++ - C compiler, such as [GCC compiler](https://gcc.gnu.org/install/download.html) or a [Musl-compatible compiler](https://musl.libc.org/)
++ - [ffmpeg](https://ffmpeg.org/download.html)
1. Install the [Go toolchain](https://golang.org/dl/) (1.16 or above).
1. Clone the repo. `git clone https://github.com/owncast/owncast`
1. `go run main.go` will run from source.
1. Visit `http://yourserver:8080` to access the web interface or `http://yourserver:8080/admin` to access the admin.
1. Point your [broadcasting software](https://owncast.online/docs/broadcasting/) at your new server and start streaming.
-There is also a supplied `Dockerfile` so you can spin it up from source with little effort. [Read more about running from source](https://owncast.online/docs/building/).
-
-### Bundling in latest admin from source
+### Frontend
-The admin ui is built at: https://github.com/owncast/owncast-admin it is bundled into the final binary using pkger.
+The frontend is the web interface that includes the player, chat, embed components, and other UI.
-To bundle in the latest admin UI:
-
-1. From the owncast directory run the packager script: `./build/admin/bundleAdmin.sh`
-1. Compile or run like above. `go run main.go`
+1. This project lives in the `web` directory.
+1. Run `npm install` to install the Javascript dependencies.
- 1. Run `npm run dev`
-
++1. Run `npm run dev`
## Contributing
@@@ -113,9 -106,17 +113,6 @@@ We’ve been very lucky to have this s
There is a larger, more detailed, and more up-to-date [guide for helping contribute to Owncast on our website](https://owncast.online/help/).
-### Architecture
-
-Owncast consists of two repositories with two standalone projects. [The repo you're looking at now](https://github.com/owncast/owncast) is the core repository with the backend and frontend. [owncast/owncast-admin](https://github.com/owncast/owncast-admin) is an additional web project that is built separately and used for configuration and management of an Owncast server.
-
-### Suggestions when working with the Owncast codebase
--
-1. Install [golangci-lint](https://golangci-lint.run/usage/install/) for helpful warnings and suggestions [directly in your editor](https://golangci-lint.run/usage/integrations/) when writing Go.
-1. If using VSCode install the [lit-html](https://marketplace.visualstudio.com/items?itemName=bierner.lit-html) extension to aid in syntax highlighting of our frontend HTML + Preact.
-1. Run the project with `go run main.go`.
--
--
<!-- LICENSE -->
## License