Giter Club home page Giter Club logo

serverless-contactform's Introduction

serverless-contactform - A serverless app to serve the contactform

A serverless app designed to serve a contactform, running on ZEIT

Layout

.
├── .env_template <-- A template file with the environment variables needed for the function
├── .gitignore    <-- Ignoring the things you do not want in git
├── go.mod
├── go.sum
├── index_test.go <-- Tests for the function code
├── index.go      <-- The actual function code
├── LICENSE       <-- The license file
├── Makefile      <-- Makefile to build and deploy
├── now.json      <-- Deployment descriptor for ZEIT
└── README.md     <-- This file :)

Installing

Get the sources

You can get the sources for this project by simply running

go get -u github.com/retgits/serverless-contactform/...

Update secrets

Update the secrets by running

make update-secrets

This command will delete and recreate the secrets. The secrets used are:

  • RECAPTCHA_SECRET: The reCAPTCHA secret token you can get from the Server side integration step in Google reCAPTCHA
  • EMAIL_ADDRESS: The email address to send data to (like [email protected])
  • EMAIL_PASSWORD: The password needed to log in to the SMTP server
  • SMTP_SERVER: The SMTP server
  • SMTP_PORT: The SMTP server port

Deploy

Deploy the app by running

make deploy

serverless-contactform's People

Contributors

retgits avatar

Stargazers

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