In this tutorial, you will learn how to build an email app that works entirely on the SAFE Network!
Instead of relying on an email service provider such as Gmail, or going through the trouble of running your own mail server, you can use the SAFE Network to build dynamic applications such as email and messaging apps.
The emails you send using SAFE Mail Tutorial are encrypted using the public encryption key of the recipient. This means that only the recipient of an email is able to read its content. This example app demonstrates the usage of private appendable data.
This tutorial will showcase how to:
- Fetch email data
- Create an email ID
- Send an email
- Refresh the inbox folder
- Save an email
- Delete an email
You will learn about the following APIs:
electron-react-boilerplate was used as a starting point.
Since this app is built using Electron, it can be distributed as a desktop app (Windows, OS X and Linux).
Building from source
1. SAFE Launcher
Start SAFE Launcher v0.10.0 and log in.
Make sure you have Node.js v6 (LTS).
There are many ways to install Node.js. See nodejs.org for more info.
1. Clone this GitHub repository
git clone https://github.com/maidsafe/safe_examples.git
If you don't have Git installed, you can download it from git-scm.com.
2. Install the dependencies
cd safe_examples/email_app && npm install
3. Start the app
npm run dev