Giter Site home page Giter Site logo

Newsletter-Signup_Heroku

Newsletter App – Using Mailchimp app

Mailchimp – An email marketing company, we gonna use it for setting up the newsletter.

Setting up the signup page - Highlevel startup steps:

  1. CD to where we want to create our new project eg: Documents a. cd Documents
  2. Create New Project Folder called Newsletter-Signup a. mkdir Newsletter-Signup
  3. Inside Newsletter-Signup, create a new app.js file, a signup.html file, success.html and failure.html files. a. touch app.js signup.html success.html failure.html
  4. Initialize npm with default options. a. npm init
  5. Install body-parser, express and request npm modules to the new project. a. npm install body-parser express request
  6. Open project in Atom. a. Atom .
  7. Require the newly installed modules inside app.js a. const express = require(“express”); b. const bodyParser = require(“body-parser”); c. const request = require(“request”);
  8. Create a new express app and set it to listen on port 3000. a. const app = express();
  9. Once port is set up, log “server is running on port 3000”. a. app.listen(3000, function() { console.log(“Server is running on port 3000”); });
  10. Copy and use bootstrap signin template source code from bootstrap examples. Tweak html and css items as required. a. https://getbootstrap.com/docs/5.1/examples/sign-in/

NOTES:

  1. //To get the static file contents - styles.css & images in express a. app.use(express.static("public")); where public is the main folder which has the reference files or folders.
  2. BodyParser get and post routes.   Posting Data to Mailchimp’s servers via their API: Ref: https://mailchimp.com/developer/marketing/guides/quick-start/

Hosting app in Heroku: Guide: https://devcenter.heroku.com/articles/getting-started-with-nodejs

Github code: https://github.com/sathishkumarpsk/Newsletter-Signup_Heroku

Heroku link: https://stark-journey-29643.herokuapp.com/ image

image

sathishkumarpsk's Projects

drumkit icon drumkit

Compose your own music on your own way!!

proshop-v2 icon proshop-v2

ProShop ecommerce website built with MERN & Redux Toolkit - React Learning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.