wifi-tally_Oostendam/documentation/build/_sources/server/index.rst.txt

63 lines
2.4 KiB
Plaintext
Raw Normal View History

2023-01-28 15:48:26 +00:00
======
Server
======
The tallies require a server that will direct the tallies and figure out the status of the ``BlackMagic ATEM``.
Build the server
================
Navigate to ``wifi-tally/hub`` and run the ``build_server.sh``.
.. code-block:: console
$ ./build_server.sh
> wifi-tally-hub@0.1.0 build
> next build
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data
[== ] info - Generating static pages (0/1)info - Finalizing page optimizati
info - Finalizing page optimization
Page Size First Load JS
┌ λ / 4.55 kB 94.4 kB
├ /_app 0 B 59.2 kB
├ ○ /404 3.01 kB 62.2 kB
├ λ /config 1.48 kB 91.3 kB
└ λ /tally/[tallyName] 1.48 kB 91.3 kB
+ First Load JS shared by all 59.2 kB
├ chunks/07ed33f3.bca366.js 68 B
├ chunks/commons.94f2cd.js 11 kB
├ chunks/framework.9ec1f7.js 39.9 kB
├ chunks/main.7e5158.js 7.2 kB
├ chunks/pages/_app.627bfb.js 284 B
├ chunks/webpack.e06743.js 751 B
└ css/ba2fd543a36dbb3ceef1.css 25.9 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
(ISR) incremental static regeneration (uses revalidate in getStaticProps)
[ ===] info - Generating static pages (0/1)%
To run the server, navigate to ``wifi-tally/hub`` and execute ``run_server.sh``
.. code-block:: console
$ ./run_server.sh
> wifi-tally-hub@0.1.0 start
> node server.js --env=production
Using mixer configuration "null"
No video mixer connected.
Listening for Tallies on 0.0.0.0:7411
Web Server available on http://localhost:3000
(node:117081) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
Depending on the OS of the stream PC you might need to create a new shell script to execute the **npm run start** command to run the server.