DEV Community

Yaşar İÇLİ
Yaşar İÇLİ

Posted on

2 1

Acil

Maybe many nodejs applications will work, but you may want to hear from errors.

All you have to do is use acil.

for example you have a nodejs application:

import express from 'express';
const app = express();

app.get('/', (req, res) => {

  hello // <-- this error send email

  res.send('Hello World!')
})

app.listen(3000)

Enter fullscreen mode Exit fullscreen mode

Let's add the package now.

yarn add acil @babel/node @babel/core @babel/preset-env --dev
Enter fullscreen mode Exit fullscreen mode

and add start script.

"scripts": {
  "start": "acil server.js" // <-- your server application file
}
Enter fullscreen mode Exit fullscreen mode

Take a look at the following acil.json example:

{
  "admins": ["yasaricli@gmail.com"],
  "from": "Company <no-reply@company.com>",
  "sendGridApiKey": "SG.XXX"
}
Enter fullscreen mode Exit fullscreen mode

and let's start.

yarn start
Enter fullscreen mode Exit fullscreen mode

It's that simple.

https://github.com/tsepeti/acil

Image of Wix Studio

2025: Your year to build apps that sell

Dive into hands-on resources and actionable strategies designed to help you build and sell apps on the Wix App Market.

Get started

Top comments (0)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay