mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 02:58:20 +08:00
1,023 B
1,023 B
K2 - The local sync engine for Nylas N1
Initial Setup:
New Computer (Mac):
- Install Homebrew
- Install NVM
brew install nvm
- Install Node 6 via NVM:
nvm install 6
- Install Redis locally
brew install redis
New Computer (Linux - Debian/Ubuntu):
- Install Node 6+ via NodeSource (trusted):
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
- 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.