Node File Explorer
npm install node-file-explorer javascript
let fileExplorer = require('node-file-explorer');
fileExplorer.set(app, {PREFIX}, {ROOT_PATH});
`
Where:
* PREFIX = use as a prefix to your url, e.g.: http://localhost:8080/{PREFIX}/file.js
* ROOT_PATH = use to set the root path, usually is set to './'Using the demo on frontend
If something as simple as this demo is enough for your needs:On your app.module.ts:
` typescript
import { NFEModule } from 'node-file-explorer/demo/src/app/app.module';@NgModule({
declarations: [
...
],
imports: [
NFEModule.forRoot('{INSERT YOUR URL HERE WITH THE PREFIX}/'),
...
],
providers: [
...
],
bootstrap: [AppComponent]
})
export class AppModule { }
``