Skip to content

toweringcloud/x-clone-nextjs

Repository files navigation

x-clone-nextjs

realtime social network service (mini twitter clone)

features

user authentication

  • sign-up Alt text

  • sign-in Alt text

user profile

  • profile Alt text

  • profile edit Alt text

tweets crud

  • tweet list & add Alt text

  • tweet detail & comment add/remove Alt text

  • tweet search by keyword Alt text

how to run

setup

  • install nodejs platform (v18 or later)
$ node -v
v18.20.4
  • install required packages
$ npm install

config

  • set runtime environment for development (local)
$ cat .env
COOKIE_NAME="..."
COOKIE_PASSWORD="..."
  • set runtime environment for production (vercel)
$ cat .env.prd
COOKIE_NAME="..."
COOKIE_PASSWORD="..."
POSTGRES_PRISMA_URL="..."
POSTGRES_URL_NON_POOLING="..."

launch

  • run service in development mode
$ npm run dev
  • run service in production mode
$ npm run build
$ npm start