mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
packages | ||
.dockerignore | ||
.env | ||
.eslintrc | ||
.gitignore | ||
Dockerfile | ||
lerna.json | ||
package.json | ||
pm2-dev.yml | ||
pm2-prod-api.yml | ||
pm2-prod-dashboard.yml | ||
pm2-prod-sync.yml | ||
README.md | ||
test_accounts.txt |
K2 - Sync Engine Experiment
Initial Setup:
New Computer (Mac):
- Install Homebrew
- Install VirtualBox 5+
- Install Docker for Mac
- 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
New to AWS:
- Install Elastic Beanstalk CLI:
sudo pip install awsebcli
- On Linux, you may need to install Python 3's pip via
sudo apt-get install python3-pip
and then runpip3 install --user awsebcli
. This installs to your home directory and you need to have~/.local/bin
in your $PATH. - Install AWS CLI:
brew install awscli
on Mac andpip install --user awscli
on Linux. - Add your AWS IAM Security Credentials to
aws configure
. - These are at Console Home -> IAM -> Users -> {{Your Name}} -> Security Credentials. Note that your private key was only shown unpon creation. If you've lost your private key you have to deactivate your old key and create a new one.
- Get the K2 team private SSH key. (Ignore this when we have a Bastion Host). Ask someone on K2 for a copy of the private SSH key. Copy it to your ~/.ssh folder.
chmod 400 ~/.ssh/k2-keypair.pem
ssh i ~/.ssh/k2-keypair.pem some-ec2-box-we-own.amazonaws.com
- Connect to Elastic Beanstalk instances:
eb init
. Select correct region. Select correct application.
Developing Locally:
npm run start
npm run logs
npm run stop
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.