Create DB and take connection
-
Create db with first collection in www.mongodb.com
- Go to MongoDB
- Choose your project
- Click the link of entering the project
- Go to Collections tab
- Push the "+ Create Database" button
- Type "Database name" & "Collection name" and push the "Create" button
-
Add connection link to .env like
DB_HOST=..mongodb.net/mydatabase?retryWrites..
- Go to MongoDB
- Choose your project
- Push the Connect button
- Push in "Connect to your application" tab the Drivers button
- Copy necessary link and change there password and name of DB (Remember, that this password works for all db-s in the current project, so often we take it from own passwords file)
SENDGRID_KEY
Usually API key saved during of its creation, and somewhere saved on your own info
On sendgrid.com we may only check if key exists & check of Sender Verification.
Key exists:
- Go to https://app.sendgrid.com/ (REMEMBER about often used a two-factor authorization)
- Settings
- API Keys
Sender Verification - means who was send e-mail.
- Settings
- Sender Authentication
-
Single Sender Verification - we see who could send info, also to
add more addresses press for first adress.
P.S. Single Sender Verification - used for external addresses gmail.com, ukr.net etc. , recommended is Domain Authentication