Coder Social home page Coder Social logo

tree105's Introduction

tree105

Static site for Pembroke Troop 105 Christmas Tree Drive.

Local Testing

Stack

This is a weird mash of a Hugo static site and a flask server. In 2022, it was just the Hugo piece with some javascript, and in 2023, in implementing Stripe, I made it a flask service and allowed the flask service to serve the static content too. So first, Hugo renders the markdown into HTML, and then Flask can render the HTML and any other templates into HTTP responses. Also and more importantly, Flask implements the API called by the payment and address forms as well as the webhooks that Stripe calls.

Hugo

Depends on Hugo and uses a theme via a git submodule. First time after cloning you may have to

git submodule update --init --recursive

Then to run locally, install Hugo and its prerequisites and then hugo server.

go version
sass --version # or brew install sass/sass/sass
hugo version # or brew install hugo
hugo server

Flask

Start local Hugo and Flask servers:

hugo server &
cd server
python server.py

To stop, Ctrl-C to stop Flask and kill %1 to stop Hugo (assuming it started as job 1).

tree105's People

Contributors

tomconner avatar

Watchers

 avatar

tree105's Issues

Can bypass first screen

Can browse iframe at top level. Should disallow. This could cause confusion but not damage

Chromebook lookup code on Venmo pay panel after registration

Tim:
I am on my Chromebook and using different credentials still seeing reference to Fred Flintstone on the Venmo screen. Wonder if it is defaulting to Fred Flintstone and not generating a new code for each user in production. I don't think this is a show stopper, but may confuse people.

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.