2021-09-09 15:41:02 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Stefan Begerad <stefan@begerad.de>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
## Overview
|
2022-02-19 21:35:46 +01:00
|
|
|
Download file using node.js inbuild packges.
|
2021-09-09 15:41:02 +02:00
|
|
|
|
|
|
|
## Preparation
|
2022-02-19 21:35:46 +01:00
|
|
|
Run the following command in your favorite terminal to install dependenies.
|
2021-09-09 15:41:02 +02:00
|
|
|
```
|
|
|
|
npm i
|
|
|
|
```
|
|
|
|
## Development setup
|
2022-02-19 21:35:46 +01:00
|
|
|
Run the following command in your favorite terminal if you fancy log messages for debugging.
|
2021-09-09 15:41:02 +02:00
|
|
|
```
|
2022-02-19 21:35:46 +01:00
|
|
|
export DEBUG=$DEBUG,dload
|
2021-09-09 15:41:02 +02:00
|
|
|
```
|
2022-02-19 21:35:46 +01:00
|
|
|
Run the following command in your favorite terminal to start the service in development mode.
|
2021-09-09 15:41:02 +02:00
|
|
|
```
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
## Production deployment
|
2022-02-19 21:35:46 +01:00
|
|
|
Run the following command in your favorite terminal to start the service for production mode.
|
2021-09-09 15:41:02 +02:00
|
|
|
```
|
|
|
|
npm run start
|
|
|
|
```
|
2022-02-19 21:35:46 +01:00
|
|
|
## Links
|