Skip to content

Commit dc11498

Browse files
authored
Merge pull request #2 from bitIO/docs
docs: add README.md file
2 parents 3765343 + 8b96991 commit dc11498

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# express-rest-file-server
2+
![travis-ci](https://travis-ci.org/bitIO/express-rest-file-server.svg?branch=master)
3+
4+
An express based application, inspired by [mock-file-server](https://github.com/betajs/mock-file-server), to be used as a CRUD file server storing content in the memory (temporal) or in the disk (permanent) of the server.
5+
6+
## Usage
7+
You can either install it globally o locally to your project
8+
9+
```shell
10+
# global installation
11+
npm install -g express-rest-file-server
12+
# local installation
13+
npm install express-rest-file-server
14+
```
15+
16+
To start using it with default options, just run
17+
18+
```shell
19+
# global installation
20+
express-rest-file-server
21+
# local installation
22+
npx express-rest-file-server
23+
```
24+
25+
### Options
26+
27+
* port: defaults to 5000
28+
* storageType: can be `memory` or `disk` (defaults to memory)
29+
* storagePath: where to store the files if storage is set to `disk` (defaults to `/tmp`)
30+

0 commit comments

Comments
 (0)