GithubHelp home page GithubHelp logo

joe-tian-forexco / node-cli-course Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webdevcody/node-cli-course

0.0 0.0 0.0 546 KB

License: MIT License

Shell 0.36% JavaScript 9.03% TypeScript 85.03% CSS 0.24% HCL 3.28% Dockerfile 2.06%

node-cli-course's Introduction

Overview

an example application which allows users to pay via stripe to get access to a single unlisted youtube video.

Setup

These are the manual setup / deployment steps. I want to work on automating these soon:

  • setup stripe
    • create a product and note PRICE_ID
    • create webhook and note STRIPE_WEBHOOK_SECRET
    • note NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
    • note STRIPE_SECRET_KEY
    • enable customer emails
  • create amplify app using AWS dashboard
    • set all env variables
    • modify build settings to look like this
      build:
        commands:
          - env | grep -e NEXT_PUBLIC_ >> .env.production
          - env | grep -e STRIPE_SECRET_KEY >> .env.production
          - env | grep -e HOST_NAME >> .env.production
          - env | grep -e STRIPE_WEBHOOK_SECRET >> .env.production
          - env | grep -e PRICE_ID >> .env.production
          - env | grep -e NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY >> .env.production
          - env | grep -e TABLE_NAME >> .env.production
          - env | grep -e SECRET_ACCESS_KEY >> .env.production
          - env | grep -e ACCESS_KEY_ID >> .env.production
          - env | grep -e REGION >> .env.production
          - yarn run build
      
  • domain
    • setup domain on amplify
    • create dns record to point to cloudfront

How to Run

  1. yarn
  2. yarn dev

node-cli-course's People

Contributors

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