npm install -g serverless
npm install
- 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
-
Copy
config.example.yml
toconfig.dev.yml
andconfig.prod.yml
, then set up the values properly for every environment. -
Start the server
npm run offline
- Go to http://localhost:3000