npm init --yes
[--yes flag lets npm fills the package. json file with the sensible default obtained from the current project folder.]
npm i express dotenv nodemon @mailchimp/mailchimp_transactional sequelize sequelize-cli pg pg-hstore
npm i -D typescript @types/node @types/express
npx tsc --init
mkdir src
[contains .tsx extension file]
mkdir dist
[contains .js compiled file]
touch index.tsx
[inside /src directory]
touch .env
[on root dir]
"baseUrl": "src/index.tsx",
"outDir": "./dist",
- Register account in Mandrillapp domain
- Generate a new api key [domain: https://mandrillapp.com/settings/]
- Copy the api key & paste it into .env file
- Register account in Mailchimp domain
- Generate a new api key [domain: https://us21.admin.mailchimp.com/account/api/]
- Copy the api key & paste it into .env file