Skip to content

How to deploy with nodejs #37

Answered by HerbertHe
HerbertHe asked this question in Q&A
Discussion options

You must be logged in to vote

The project is developed with nodejs, so you can deploy directly with following steps:

  • Confirm that you have installed nodejs first. If not, you can install it with nvm or see the offical website https://nodejs.org/en
  • Clone the repo.
git clone git@github.com:HerbertHe/iptv-sources.git

cd iptv-sources
  • Install yarn
npm install yarn -g
  • Install dependencies
yarn install
  • Build scripts
yarn build
  • Fetch sources

If you want to use environment variables, you need to add them to PATH first. Or, run the following command with them.

yarn m3u
  • Start static service
yarn serve

Then, you can use it with http://127.0.0.1:8080 or http://[::1]:8080

Replies: 1 comment

Comment options

HerbertHe
Jan 15, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by HerbertHe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant