2016-06-21 03:19:01 +08:00
|
|
|
# K2 - Sync Engine Experiment
|
|
|
|
|
2016-06-21 04:21:10 +08:00
|
|
|
# Initial Setup
|
2016-06-22 08:44:09 +08:00
|
|
|
|
|
|
|
1. Download https://toolbelt.heroku.com/
|
|
|
|
|
2016-06-21 04:21:10 +08:00
|
|
|
```
|
2016-06-22 08:44:09 +08:00
|
|
|
brew install redis
|
|
|
|
nvm install 6
|
2016-06-23 05:53:23 +08:00
|
|
|
npm install
|
2016-06-21 03:19:01 +08:00
|
|
|
```
|
|
|
|
|
2016-06-22 08:44:09 +08:00
|
|
|
# Running locally
|
2016-06-21 03:19:01 +08:00
|
|
|
|
|
|
|
```
|
2016-06-23 05:49:36 +08:00
|
|
|
npm start
|
2016-06-21 03:19:01 +08:00
|
|
|
```
|
2016-06-25 02:57:24 +08:00
|
|
|
|
|
|
|
## Auth an account
|
|
|
|
|
|
|
|
```
|
|
|
|
curl -X POST -H "Content-Type: application/json" -d '{"email":"inboxapptest2@fastmail.fm", "name":"Ben Gotow", "provider":"imap", "settings":{"imap_username":"inboxapptest1@fastmail.fm","imap_host":"mail.messagingengine.com","imap_port":993,"smtp_host":"mail.messagingengine.com","smtp_port":0,"smtp_username":"inboxapptest1@fastmail.fm", "smtp_password":"trar2e","imap_password":"trar2e","ssl_required":true}}' "http://localhost:5100/auth?client_id=123"
|
|
|
|
```
|