Sweetearth is an eCommerce platform for carbon offset projects, built with React and Rails.
- I couldn't find an easy, 3-click carbon offset donation app, so I built one.
- I wanted to explore the microservices architecture pattern. I identified Stripe & Auth0 as good candidates for services that met the needs of this project.
- I was curious to learn more about the type of projects people are doing to take of our ecosystem. If you're also curious, Drawdown is a great place to start.
- React front-end, createContext and useReducer pattern for global state management
- Rails and PostgreSQL back-end, Fast_JSON serializers. Front-end repo here.
- Auth0 implemented for handling authorization
- Stripe integration for payment handling
- Deployed through Netlify & Heroku
- Users can sign up / log in through Auth0, including social login through Google
- Users can select from 8 curated carbon offset projects to contribute to
- Users can checkout as a guest or registered user, if registered their email information pre-fills
- Users can make payments through Stripe
- Users receive a success animation on payment confirmation, which is animated with Lottie
- Users receive sign up and payment confirmation emails, handled in Auth0 and Stripe respectively
- If users are logged in, they can see a history of their transactions
MIT © @gortron