Skip to content

ArbitrarilyTong-infra/updater-client

 
 

Repository files navigation

LineageOS Updater Client

Prerequisites

  • node.js & npm

Setting up the app

  1. Create an environment file

Create a file named .env.local.

Example:

VITE_API_HOSTNAME=http://192.168.100.25:5000/

Replace http://192.168.100.25:5000/ with the hostname of the updater server. Note: the trailing slash is required

  1. Install all npm modules

Run the following command:

npm install

Running the app

Development

Run the following command:

npm run dev

This will start a development server that watches for all file changes and live reloads the webpage.

Production

Run the following command:

npm run build

This will build the app and place all the static files into the dist subdirectory. You can then serve the app with any static file server you want.

Example nginx configuration:

server {
        server_name updater.example.com;

        location / {
                root   /path/to/updater-client/dist;
                index  index.html;
                try_files $uri $uri/ /index.html;
        }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 65.9%
  • JavaScript 30.7%
  • CSS 2.2%
  • Other 1.2%