NextJS v15
MongoDB (default)
Supabase (optional)
NextAuth
Drag & Drop using react-beautiful-dnd
npm install
npm run dev
when deploying to Vercel or AWS, don't upload the .env file, you will need to import environment variables into the Vercel/AWS hosting settings
generate a secret key using this command:
npx auth secret
or
openssl rand -base64 32
Sign into your Github or Google account and navigate to the Developer Settings
Get your Client ID and Secret Keys, and set them in the .env file
/lib/db.js
/lib/actions.js
/app/api/auth/[...nextauth]/route.js
/lib/supabase-db.js
/lib/supabase-actions.js
/app/api/auth/[...nextauth]/route.js
Sign into Supabase and get the Database URL and Service Role Key
Update the .env file
CREATE TABLE IF NOT EXISTS users (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
email TEXT NOT NULL UNIQUE
)
CREATE TABLE IF NOT EXISTS items (
item_id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
user_id UUID REFERENCES users (id),
content TEXT
)
lh3.googleusercontent.com
avatars.githubusercontent.com
www.gravatar.com
images.unsplash.com
Open http://localhost:3000 with your browser to see the result.