Skip to content

Commit

Permalink
Update doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRClark committed Jun 2, 2021
1 parent 1dabe42 commit 7dae658
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 14 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# ngx-file-select

Tired of forcing your users to access their own files on a web app by entering a path so that NodeJS can interact with it. This is a simple web component which acts as a lightweight alternative to the Electron file browser.

## Preview


## Example: Embed in a bootsrap modal
```html

<script type="text/javascript">
function handleBrowseEvent(event) {
window.removeEventListener('fselect', handleBrowseEvent);
$("#browseModal").modal('hide');
$("#new-node-input-filename").val(event.detail.path);
}
</script>

<!-- Bootstrap 4 modal -->
<div id="browseModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">

<div class="modal-header">
<h3 id="myModalLabel" class="modal-title text-white">File Browse Control</h3>
<button type="button" class="close text-white" id="modal-x" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>

<div class="modal-body" id="fileBrowseControl">
<div style="background-color: white;">
<file-browse></file-browse>
</div>
</div>

</div>
</div>
</div>
</div>
```
19 changes: 5 additions & 14 deletions api/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
# account-manager-api
# file demo api

## Build

```bash
npm install
npm run build

## Debugging
From git bash
```bash
export DB_CONNECT_STRING="mongodb+srv://<username>:<password>@cluster0.2xjwj.mongodb.net/<dbname>?retryWrites=true&w=majority"
export RECURLY_API_KEY="API_KEY"

export AWS_ACCESS_KEY_ID="AWS_ACCESS_KEY_ID"
export AWS_SECRET_ACCESS_KEY="AWS_SECRET_ACCESS_KEY"
```
then launch VS Code.

## Running
```bash
code .
npm start
```
last start the debugger.

0 comments on commit 7dae658

Please sign in to comment.