Skip to content

kage1020/TUSApp

Repository files navigation

This is an unofficial utility app for learning stacks created by Taniguchi Lab members in TUS.


Getting Started

Visit https://tus-app.vercel.app to use this app.

Features

Development

Prerequisites

When you want to develop this app, you need to install the following software.

  • Node.js >= 16.8
  • Python >= 3.8

When you use Todo List, you need to set up Supabase with creating Account.

Installation

  1. Clone the repo

    git clone https://github.com/kage1020/TUSApp.git
    cd TUSApp
  2. Install NPM packages

    npm install
  3. create .env file in root directory

    # NextAuth.js
    NEXTAUTH_URL="http://localhost:3000"
    NEXTAUTH_SECRET="secret"
    GITHUB_CLIENT_ID="*"
    GITHUB_CLIENT_SECRET="*"
    
    # Prisma
    DATABASE_URL="postgres://postgres:*@db.*.supabase.co:6543/postgres?pgbouncer=true&connection_limit=1"

    env variables for NextAuth.js are required to use GitHub OAuth. Please refer to here for more information.

    env variables for Prisma are required to use Supabase. Please refer to here for more information.

  4. setup prisma for Supabase

    npm run prisma:generate
    npm run prisma:push
  5. Install Python packages

    cd server
    pip install -r requirements.txt
  6. run dev server

    # root directory
    npm run dev
    
    # server directory
    python main.py

Architecture

License

See LICENSE for more information.

References

Authors