This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# RainCatcher Camera Plugin | ||
# RainCatcher Cordova Camera Wrapper | ||
|
||
Simple wrapper around the [Cordova Camera Plugin](https://github.com/apache/cordova-plugin-camera) that uses the File Store client. | ||
Wrapper around the [Cordova Camera Plugin](https://github.com/apache/cordova-plugin-camera) that uses the File Store client. | ||
|
||
## Example | ||
|
||
```typescript | ||
import {Camera} from '@raincatcher/camera'); | ||
const camera = new Camera(); | ||
this.camera.capture().then(function(captureResponse) { | ||
const file = { | ||
uri: captureResponse.value, | ||
type: captureResponse.type, | ||
id: captureResponse.id | ||
}; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
## File store server | ||
|
||
File | ||
File store server example use case. | ||
Example using local file storage. | ||
See documentation for complete list of the storage implementations available. | ||
|
||
## Running | ||
|
||
ts-node ./example/index.ts | ||
|
||
## Requirements | ||
|
||
`MONGO_CONNECTION_URL` environment variable that points to a mongodb instance. | ||
By default using: mongodb://127.0.0.1:27017/sync | ||
|
||
`REDIS_HOST` and `REDIS_PORT` environment variables that points to a running redis instance. | ||
By default using: 127.0.0.1 and 6379 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters