seanchas116 / todoapp

[WIP] A full-stack todo web app (for learning)

Home Page:todoapp-lilac.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todoapp

A full-stack todo web app (for learning)

Based on Apollo Server と Prisma ではじめる GraphQL API 開発入門

Tech Stack

  • Firebase for authentication
  • Google Cloud Run for backend server
  • Supabase for Postgres database
  • Upstash for Redis pub/sub
  • Vercel for frontend hosting

Setup (local)

Backend

  1. Install dependencies
cd backend
npm install
  1. Create .env file
DATABASE_URL="postgresql://postgres:password@localhost:5432"
  1. Run the server
docker-compose up -d
npm run dev

Frontend

  1. Install dependencies
cd frontend
npm install
  1. Run the server
npm run dev

Setup

  • Create a Firebase project
  • Set up Firebase authentication
  • Update frontend/src/util/firebase.ts
  • Download a service account key from Firebase project settings and save it as backend/service-accounts.json
  • Create a Supabase project
  • Copy the database URL
  • Deploy the backend server to Google Cloud Run
    • Set the environment variable DATABASE_URL to the database URL (using Secret Manager)
  • Deploy the frontend to Vercel

About

[WIP] A full-stack todo web app (for learning)

todoapp-lilac.vercel.app

License:MIT License


Languages

Language:TypeScript 94.3%Language:JavaScript 2.7%Language:HTML 1.8%Language:Dockerfile 0.6%Language:CSS 0.3%Language:Shell 0.3%