acil-monorepo
v0.0.0
Published
When we get **errors** for some of our applications, we have to `look`. But if you use **acil**, your mistakes will come to your **e-mail** address.
Readme
Why acil ?
When we get errors for some of our applications, we have to look. But if you use acil, your mistakes will come to your e-mail address.
Getting Started
Before we get started, you'll need to install Node and Yarn (or npm) and create a package.json for your project if you haven't already.
yarn add acilOpen package.json and add the following scripts:
"scripts": {
"start": "acil server.js" // <-- your server application file
}For custom advanced behavior of acil, you can create a acil.json in the root of your project directory.
Take a look at the following acil.json example:
{
"from": "Company Name <[email protected]>",
// Each item in the list should be a tuple of (Full name, email address). Example:
"admins": ["Developer1 <[email protected]>", "Developer2 <[email protected]>"],
// !! Add it if you don't use Environment Variable (SENDGRID_API_KEY)
"sendGridApiKey": "xxx",
"foreverOptions": {
// https://github.com/foreversd/forever-monitor#options-available-when-using-forever-in-nodejs
}
}Setup Environment Variables
Acil is currently using sendgrid for emails. For this you need to create SENDGRID_API_KEY.
Using Environment Variable
export SENDGRID_API_KEY=XXXUsing acil.json
Add the line sendGridApiKey as follows:
{
...
"sendGridApiKey": "XXX"
}