WeBlog is a react project built using Nextjs 14, Mongoose, Authjs, Cloudinary and shadcn
- Registration
- Login
- Posting
- Profile page
- Profile settings
- Search for users
Setting environment variables
Name | Description |
---|---|
DBURL | Create your cluster at mongo, and enter the link provided during configuration by adding your username and password |
AUTH_SECRET | You can generate one via running: npx auth secret . Alternatively, you can use the openssl CLI, openssl rand -base64 33 |
AUTH_URL | http://localhost:3000/api/auth |
GITHUB_ID | Go to Github - Settings - Developer Settings - OAuth Apps - create your app - copy the Client ID you are given |
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME | Install cloudinary, go to console and copy Cloud name |
UPLOAD_PRESET | your preset name |
CLOUD_API_KEY | Api key provided by cloudinary |
CLOUD_API_SECRET | Api secret provided by cloudinary |