Code Monkey home page Code Monkey logo

disposable_app's Introduction

Disposable-mail

Online demo -> http://disposable.aws.gotocloud.it/

A disposable and customizable email service on your own internet domain, using AWS building blocks. The service is totally serverless. CloudFormation template and React/Material-UI client web app source code.

Read more on my blog:

Architecture

Requirements

  • an AWS account
  • an internet domain (a third level is better) on Route53 or anywhere it’s possible to configure the DNS zone
  • a pair of Google reCAPTCHA keys (site / private) valid for your domain (reCAPTCHA console)

Installation (backend)

To build the entire backend infrastructure you can use the CloudFormation console or AWS CLI:

aws cloudformation create-stack --stack-name <name> --template-url <url> --parameters <parameters> --capabilities CAPABILITY_IAM

Description:

  <name>
        the stack name 
        
  <url> 
        template URL https://cfvn.s3-eu-west-1.amazonaws.com/disposable.yml
        
  <parameters>
        ParameterKey=DomainName,ParameterValue=<your_domain>  
        ParameterKey=ReCaptchaPrivateKey,ParameterValue=<your_private_captcha_key>

Once the stack is created, you need to know the newly created endpoint to be used in web application configuration. This is provided by CloudFormation as an output value. It is possible to get it in the CloudFormation console or directly from AWS CLI:

aws cloudformation describe-stacks --stack-name <name> --query Stacks[0].Outputs[0].OutputValue

Installation (frontend)

To create the React web application, once the repository has been cloned, it is necessary to configure some parameters at the beginning of App.js file:

  //  - your APIEndpoint
  const APIEndpoint = <your_API_endpoint>; 

  //  - your ReCaptcha Site Key
  const ReCaptcha_SiteKey = <your_reCAPTCHA_site_key>;  

  //  - your email domain 
  const email_domain = <your_domain>;

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

disposable_app's People

Contributors

vittorio-nardone avatar

Watchers

James Cloos 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.