-
Create next-app
- npx create-next-app .
- install tailwindcss postcss autoprefixer
- npx install tailwindcss postcss autoprefixer
- npx tailwindcss init -p
- update tailwind.config.js
- update global.css
- npm run dev
-
Layout structure
- add colors in tailwind.config.js
-
Sidebar navigation
-
Post form
-
Single post
- npm i react-clickout-handler
-
Animation on sidebar & dropdown
-
Profile page
-
Profile about / friends / photos
-
Saved post page
-
Notifications page
-
Login page
-
Styling for mobiles
-
setting up supabase and login
- setting up Google logins for your application consists of 3 parts:
- Create and configure a Google Project on the Google Cloud Platform Console
- Add your Google OAuth keys to your Supabase Project
- Add the login code to your Supabase JS Client App :- npm install @supabase/supabase-js
- npm install @supabase/auth-helpers-nextjs :- For next.js
- npm install @supabase/auth-helpers-react :- For react.js
- set up environment variables
- setup in app.js
- setting up Google logins for your application consists of 3 parts:
-
Logout
-
User profile table in supabase
-
Show correct avatar and name on post form
// xewwy7-bokjeG-zokjur