GithubHelp home page GithubHelp logo

isabella232 / constant-contact-forms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webdevstudios/constant-contact-forms

0.0 0.0 0.0 24.47 MB

Add a contact form to your WordPress site and quickly capture information from visitors.

Home Page: https://constantcontact.com

License: Other

JavaScript 10.07% CSS 5.36% PHP 78.05% Shell 0.58% SCSS 5.95%

constant-contact-forms's Introduction

Constant Contact Forms

Tooling Overview

Since we want to add in support for Gutenberg, webpack has been integrated into the workflow. It is now responsible for transpiling and bundling all JavaScript files. You can also write JSX out of the box!

EntryPoints

  • ctct-plugin-admin - Contains all the original JavaScript for the admin area.
  • ctct-plugin-admin - Contains all original JavaScript for the frontend.
  • ctct-plugin-gutenberg - Contains all related Gutenberg JavaScript. Note that both the gutenberg and admin JS only load on new page/post pages in the admin.

Getting Started

  1. Edit plugin-config.js to match your local environment.
    • localURL - this should match your local development URL.
    • watchURL - should either be https://localhost:3000 or http://localhost:3000 depending on whether you have SSL running or not.
    • publicJS - this is just the public JS path and should not need updated.
  2. Run npm install.
  3. Run npm run watch.
  4. Open up localhost:3000 to vew the site.

NOTE: If you use Local by Flywheel and Browsersync seems to be really slow, you can go into LBF->Preferences->Advanced menu and toggle on the IPv6 Loopback option. This should speed things up.

Another Tip: If you make the LBF setting change above and your local site loads with just It Works on the page, just toggle the IPv6 option off.

Start Scripts

  • npm run watch - will watch all JS/SCSS files and reload when changed.
  • npm run dev - will build all CSS files plus non-minified JS files.
  • npm run build - will build all CSS files plus minified JS files.

Steps for local development setup

  1. Download the repo.
  2. Run composer install
  3. Check PHP compatibility with the Composer script composer run compat
  4. Lint code with the Composer script composer run lint

constant-contact-forms's People

Contributors

bradp avatar tw2113 avatar modemlooper avatar dcooney avatar richaber avatar colorful-tones avatar phatsk avatar ggwicz avatar ravewebdev avatar oceas avatar dependabot[bot] avatar vegasgeek avatar jaywood avatar

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.