This project uses React.js ( bootstrapped with npm create vite@latest
) for frontend and trpc for server.
- Setup the UI
- Setup the Server
cd frontend //Go to frontend directory (Execute from share_gram directory)
npm run dev
Open http://localhost:5173 with your browser to see the frontend UI.
cd server // Go to server directory (Execute from share_gram directory)
npm run dev
This will setup the server at http://localhost:3000
You will need the following pusher secrets:
PUSHER_APP_ID
PUSHER_KEY
PUSHER_SECRET
PUSHER_CLUSTER
The following cloudinary serctes:
CLOUD_NAME
CLOUDINARY_API_KEY
UPLAOD_PRESET
The following Database ( mongodb ) url secret:
DATABASE_URL
To learn more about Next.js, take a look at the following resources:
- React.js Documentation - learn about React.js features .
- Learn trpc - docs to learn trpc.