To get started, you can run the app locally or remix it as a Glitch app.
Note: You must have node 10 or higher installed to run this app.
First, clone the repository locally:
git clone https://github.com/nylas/inbox-zero.git
Next, install the dependencies:
cd inbox-zero && npm install
Glitch is a community coding platform that allows you to build fast, full-stack web apps in your browser for free. Click the "Remix on Glitch" button to get started.
Next, you'll need to configure the app to use your Nylas Client ID and Client secret. You can find these on the application dashboard. Don't have a Nylas account yet? Try it free
Create a .env
file with the following content:
NYLAS_ID=your-client-id
NYLAS_SECRET=your-nylas-secret
JWT_SECRET=any-random-string
You need to add a callback URL to your nylas aplication settings. If you are running locally, add http://localhost:3000/api/authorize
. If you are using Glitch, add https://your-glitch-url.glitch.me/api/authorize
Finally, run npm run local
and navigate to http://localhost:3000. Or if you are using Glitch, visit your live Glitch app. You should now see Inbox Zero!
To deploy Inbox Zero to production, first create a build for the app. This should most likely happen in your build step.
npm run build
Next, on your server, run the following to start Inbox Zero.
npm run prod
- Nylas - The Leading Platform for Email, Calendar, and Contacts
- Next.js - A React framework
- Express.js - A Node.js framework
- JSON Web Tokens - Signed Tokens
- lowdb - JSON database powered by Lodash