realtime social network service (mini twitter clone)
- install nodejs platform (v18 or later)
$ node -v
v18.20.4
- install required packages
$ npm install
- 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="..."
- run service in development mode
$ npm run dev
- run service in production mode
$ npm run build
$ npm start