💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
Find a file
Juan Tejada f2dbb2144b feat(labels): Add functioning endpoint for updating labels for messages & threads
- This commit also correctly sets the labels on the corresponding thread
whenever a message has its labels updated
- Fix removing labels from messages
2016-11-22 09:58:41 -08:00
packages feat(labels): Add functioning endpoint for updating labels for messages & threads 2016-11-22 09:58:41 -08:00
.dockerignore Dockerfile successfully building ping endpoint 2016-07-07 12:10:01 -07:00
.env Commit .env to fix dev environment 2016-06-27 13:29:13 -07:00
.eslintrc Fix linter issues 2016-11-21 14:00:35 -08:00
.gitignore Add file watching to restart server 2016-07-11 12:00:20 -07:00
Dockerfile Update dockerfile to start with env variable 2016-07-07 16:32:46 -07:00
lerna.json Upgrade lerna 2016-07-06 13:51:17 -07:00
package.json fix(readme): minor readme changes 2016-11-21 18:18:21 -08:00
pm2-dev.yml A few changes to support linking to K2 via the new GUI 2016-10-11 00:44:10 -07:00
pm2-prod-api.yml Add dashboard pm2 config 2016-07-07 17:07:19 -07:00
pm2-prod-dashboard.yml Add dashboard pm2 config 2016-07-07 17:07:19 -07:00
pm2-prod-sync.yml Switch to PM2 for dev + prod 2016-07-07 15:25:45 -07:00
README.md fix(readme): minor readme changes 2016-11-21 18:18:21 -08:00
test_accounts.txt Copy test_accounts.py into curl format for easy testing 2016-07-12 01:34:13 -07:00

K2 - The local sync engine for Nylas N1

Initial Setup:

New Computer (Mac):

  1. Install Homebrew
  2. Install NVM brew install nvm
  3. Install Node 6 via NVM: nvm install 6
  4. Install Redis locally brew install redis

New Computer (Linux - Debian/Ubuntu):

  1. Install Node 6+ via NodeSource (trusted):
  2. curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  3. sudo apt-get install -y nodejs
  4. Install Redis locally sudo apt-get install -y redis-server redis-tools

Developing Locally:

npm install
npm start

We use pm2 to launch a variety of processes (sync, api, dashboard, processor, etc).

You can see the scripts that are running and their arguments in /pm2-dev.yml

To test to see if the basic API is up go to: http://lvh.me:5100/ping. You should see pong.

lvh.me is a DNS hack that redirects back to 127.0.0.1 with the added benefit of letting us use subdomains.

Deploying