Skip to content

edu791/serverless-email-service

Repository files navigation

Serverless Mail Service For Sengrid

Install dependencies

npm install -g serverless
npm install

Local environment variables

  • Create a .env.yml file on the root of the project. The content should be like this:
EMAIL_API_KEY: G2M3N3KJ4HG23KJ4HG23J4
FROM_EMAIL: [email protected]
FROM_NAME: No-reply

Note: I recommend you to use a service like Doppler to store your environment variables. It's used on the CI/CD scripts inside the .github/workflow folder

Run offline server

  • Copy config.example.yml to config.dev.yml and config.prod.yml, then set up the values properly for every environment.

  • Start the server

npm run offline

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published