Added a new read me (DEVELOPMENT.md) as starting point for new develope
Added a new VSC launch configuration to start the backend in the debugger Update the build instruction in README.md (Issue #728)pull/800/head
parent
9c0a77cb6e
commit
575f7eed4e
@ -0,0 +1,38 @@
|
|||||||
|
<h1>Development</h1>
|
||||||
|
|
||||||
|
- [First time...](#first-time)
|
||||||
|
- [Setup](#setup)
|
||||||
|
- [Startup](#startup)
|
||||||
|
- [Debugging the backend (VSC)](#debugging-the-backend-vsc)
|
||||||
|
- [Deploy changes](#deploy-changes)
|
||||||
|
- [Frontend](#frontend)
|
||||||
|
- [Backend](#backend)
|
||||||
|
|
||||||
|
# First time...
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
Checkout the repository and navigate to the `youtubedl-material` directory.
|
||||||
|
```bash
|
||||||
|
vim ./backend/appdata/default.json # Edit settings for your local environment
|
||||||
|
npm -g install pm2 # Install pm2
|
||||||
|
npm install # Install dependencies for the frontend
|
||||||
|
cd ./backend
|
||||||
|
npm install # Install dependencies for the backend
|
||||||
|
cd ..
|
||||||
|
npm run build # Build the frontend
|
||||||
|
```
|
||||||
|
This step have to be done only once.
|
||||||
|
|
||||||
|
## Startup
|
||||||
|
Navigate to the `youtubedl-material/backend` directory and run `npm start`.
|
||||||
|
|
||||||
|
# Debugging the backend (VSC)
|
||||||
|
Open the `youtubedl-material` directory in Visual Studio Code and run the launch configuration `Dev: Debug Backend`.
|
||||||
|
|
||||||
|
# Deploy changes
|
||||||
|
|
||||||
|
## Frontend
|
||||||
|
Navigate to the `youtubedl-material` directory and run `npm run build`. Restart the backend.
|
||||||
|
|
||||||
|
## Backend
|
||||||
|
Simply restart the backend.
|
||||||
Loading…
Reference in New Issue