Giter VIP home page Giter VIP logo

ghost-contact-form's Introduction

ghost-contact-form

Add a beautiful, fully functional contact form to your Ghost blog or website without paying for external services.

Not running on Ghost? This solution also works with Gatsby, Hugo, Hexo, Nuxt and any other static site generator.

Tutorial

Prerequisites

  • A supported version of Node.js
  • npm to manage packages

Quickstart Install

$ git clone https://github.com/styxlab/ghost-contact-form.git
$ cd ghost-contact-form
$ sh install.sh

Configure

Adapt the .env file to your needs. The following variables must be defined.

SMTP_HOST = mail.server.com
SMTP_USER = [email protected]
SMTP_PASS = strong password
ALLOW_ORIGIN = https://your-blog.com
EMAIL_FROM = [email protected]
EMAIL_TO = [email protected]

Additionally, you can add a port variable PORT = , if you want to change the default port 7000 to something else.

Usage

$ node ghost-contact-svc.js

You should see the message Listening on http://localhost:7000.

Test Locally

http://localhost:7000/v1/demo

Deploy (More detailed info in the tutorial)

  • copy the work folder ghost-contact-form to your server
  • use ghost-contact.service as a starting point for running ghost-contact-svc.js as a systemd daemon
  • configure your web-server to map endpoint http://localhost:7000/ to a public endpoint, e.g. https://api.your-blog.com/
  • Use the files in folder ghost-admin to configure your Ghost front-end
  • Other front-end configuration files upon request!

ghost-contact-form's People

Contributors

styxlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.