Skip to content

ArtBeatt/ArtBeat-Backend

Repository files navigation

Brevo Email verification script

This script uses the brevo API to send email verification and/or password reset emails to pre existing contacts in the brevo database.

Login to the brevo dashboard

image

Then click on the drop down menu at the top right and go to smpt and API

image-1

then click on API keys and generate a new key

image-2 image-3

Now go to the contacts section from the menu and create a new contact

image-4 image-5

Also go to campaigns -> templates and add a template or import one and make not of the template id

image-6

After this open the attached script and add the API key, the contact details plus a few other things like the template ID

image-7

run the script and enter the details and your mail will be sent successfully!

This file connects typeorm and an already existing database. The following steps were followed to setup this project :-

1) Download postrgeSQL From its download page.

image

2) Then open psql in command prompt and enter the following commands:

CREATE DATABASE mydatabase;

CREATE USER myuser WITH PASSWORD 'insert-your-password';

GRANT ALL PRIVILEGES ON DATABASE mydatabase TO myuser;

replace insert-your-password and myuser with your own password and username respectively

3) Then initialize a node.js project in the command prompt by running the following commands

image-2

4) then install typescript typeorm and postgresql driver using

image-3

image-4

5) then run the project using npx ts-node src/index.ts in the command prompt

image-5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published