Task Manager is a tool built using the T3 stack. It leverages Next.js, TypeScript, tRPC, Prisma, Supabase, and SST (Serverless Stack) on AWS.
- Clone the repository:
git clone https://github.com/racky7/task-manager/
cd task-manager
- Install dependencies:
npm install
- 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
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser
Follow these steps to deploy the Next.js app:
-
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>
-
Deploy the Application:
Run the following command to deploy the app:npm run deploy:prod
-
Copy the Deployed URL:
After deployment, copy the deployed URL provided in the terminal. -
Update Environment Variables:
Modify the.env
file and update theNEXTAUTH_URL
with the deployed URL:NEXTAUTH_URL=<DEPLOYED_URL>
-
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.