An email subscription modal that sends an email to you when you subscribe and stores the email in a database.
|
|
|
|
- Enter the your email address to receive a welcome email from "Everything Dogs".
- Access
/emails
to fetch data of all the emails within the database. To keep things confidential, most of the user name of your email will be filtered with a'*'
.
npm install
to install the packages- Create a
.env
file and populate the values for the following keys:MONGO_URI
,MJ_APIKEY_PUBLIC
,MJ_APIKEY_PRIVATE
,WHO_IS_XML_API
- Note that this project uses 2 APIs: MailerJet and Whoisxmlapi. Be sure to make an account with them in order to obtain the keys.
- MongoDB was used for this project so for the
MONGO_URI
, you should use the url provided by Mongo Atlas or your local one.
npm build
to build the package.npm start
to run the server and move on tolocalhost:3000
. Or you can set your own within the.env
file using thePORT
key.