Skip to content

Instantly share code, notes, and snippets.

@mjbalcueva
mjbalcueva / password-input.tsx
Last active May 2, 2024 18:58
shadcn ui custom password input
"use client"
import { forwardRef, useState } from "react"
import { EyeIcon, EyeOffIcon } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Input, InputProps } from "@/components/ui/input"
import { cn } from "@/lib/utils"
const PasswordInput = forwardRef<HTMLInputElement, InputProps>(
({ className, ...props }, ref) => {
@malthunayan
malthunayan / aws-elastic-beanstalk-fastapi.md
Created October 25, 2021 15:29
Deploy FastAPI to AWS Elastic Beanstalk

Deploy FastAPI to AWS Elastic Beanstalk (Zero to Hero)

This guide will go over how to deploy a FastAPI app, add a postgres database, and attach a SSL certificate (assuming you have purchased a custom domain).

Prerequisites

This tutorial will be using pipx to install the Elastic Beanstalk CLI. Follow the instructions here to install AWS's CLI if you do not already have that installed. Then configure it following this guide.

FastAPI project