Skip to content

racky7/task-manager

Repository files navigation

Task Manager

Task Manager is a tool built using the T3 stack. It leverages Next.js, TypeScript, tRPC, Prisma, Supabase, and SST (Serverless Stack) on AWS.

Installation

  1. Clone the repository:
git clone https://github.com/racky7/task-manager/
cd task-manager
  1. Install dependencies:
npm install
  1. Configure environment variables
cp .env.example .env

You need to set up the following environment variables:

DATABASE_URL – PostgreSQL connection string

DIRECT_URL – PostgreSQL connection string

AUTH_SECRET – Secret key for authentication

  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser

Deployment Instructions

Follow these steps to deploy the Next.js app:

  1. Configure AWS Credentials:
    Update your ~/.aws/credentials file with your AWS access details:

    [default]
    aws_access_key_id = <YOUR_ACCESS_KEY_ID>
    aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>
  2. Deploy the Application:
    Run the following command to deploy the app:

    npm run deploy:prod
  3. Copy the Deployed URL:
    After deployment, copy the deployed URL provided in the terminal.

  4. Update Environment Variables:
    Modify the .env file and update the NEXTAUTH_URL with the deployed URL:

    NEXTAUTH_URL=<DEPLOYED_URL>
  5. Redeploy the Application:
    Run the deployment command again to apply the changes:

    npm run deploy:prod

Your application should now be successfully deployed with the correct authentication URL.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published