Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SLonoed/loopback-connector-fakemail
https://github.com/SLonoed/loopback-connector-fakemail
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/SLonoed/loopback-connector-fakemail
- Owner: slonoed
- License: mit
- Created: 2015-03-27T22:37:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-04T11:59:11.000Z (over 8 years ago)
- Last Synced: 2024-05-16T12:04:36.242Z (8 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# loopback-connector-fakemail
# Do not use this package. [Mailhog](https://github.com/mailhog/MailHog) is better choise.
Connector for loopback email model.
Save email data to json files and in single index.html file.## Usage
Install `npm i --save loopback-connector-fakemail`Add to `server/datasources.json`
```
{
...
"email": {
"name": "email",
"connector": "fakemail",
"path": "/tmp/fakemails"
},
...
```## Params
### Path
**Absolute** path to store emails. Default to `/tmp/fakemails/`You can use `datasources.local.js` like this.
```
import { join } from 'path';module.exports = {
email: {
name: 'email',
connector: 'fakemail',
path: join(__dirname, '../fake-emails')
}
};
```