Node js API using express js to send e-mails
This is a simple API make to send emails on nodejs backend using express + nodemailer to service a react frontend
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See below for instructions on how to operate in your local environment.
What things you need to install the software
stable current version of node, npm and yarn
A step by step that tell you how to get a development env running
First
Clone the project
Second
Execute `yarn` or `npm install` for installing dependences
Third
Duplicate `.env.example` to create `.env` with your basic configs
Finishing
Execute `yarn dev` or `npm run dev` for executing api
Input:
{
"name":"Jack Johnson",
"email":"[email protected]",
"message":"Test of send e-mail"
}
Output:
{
"status": "success"
}
- Expressjs - Fast, unopinionated, minimalist web framework for Node.js.
- Eslint - Find and fix problems in your JavaScript code.
- Prettier - Prettier is an opinionated code formatter.
- Nodemon - Nodemon for reload automatically.
- EditorConfig - EditorConfig helps maintain consistent coding styles for multiple developers and editors.
This project is licensed under the MIT License - see the LICENSE file for details