Skip to content

Sample Next.js@14 project where users can create and publish profiles with their links.

Notifications You must be signed in to change notification settings

syntaxtic/base-link

Repository files navigation

Base Link

Sample Next.js@14 project where users can create and publish profiles with their links.

Deployment: base-link.vercel.app

Tech Stack

Improvement & Practice Ideas

  • App router & server-side rendering (SSR)
  • Dynamic routes with incremental static regeneration (ISR)
  • Explore configs: next.config.js, tsconfig.json, .eslintrc.json, ...
  • Add more authentication providers
  • Add more sections and more styling options
  • Add more account management options
  • Add image uploading for sections and backgrounds
  • Add the ability to create multiple profiles with one account
  • Improve request traffic and validations
  • Improve SEO and the metadata of the profile pages
  • Add analytics

How to

  1. Setup an empty MySQL database and generate Google Auth credentials
  2. (optional skip) Screenshot all the code files, extract the texts from images with AI, paste them in your own files with correct extensions
  3. Download the dependencies: npm ci
  4. Generate database client: npx prisma generate
  5. Rename .env.example as .env and add your environment variables: DB URL, Google Credentials and NEXTAUTH_SECRET
  6. Migrate DB schema: npx prisma migrate dev --name fresh
  7. (Included with the prev step) Seed sample data: npx prisma db seed (see ./prisma/seed.ts)
  8. Start development: npm run dev

Screenshots v0.0.1


About

Sample Next.js@14 project where users can create and publish profiles with their links.

Resources

Stars

Watchers

Forks

Languages