Next.js blog build with SWR, MongoDB and Firebase
- Add, delete posts from mongodb
- Fetch, mutate posts with useSWRInfinite hook
- Paginated API
- Ip based post liking
- Requests limit
- Hidden /secret route for admin authentication with firebase
- Post build sitemap.xml & robots.txt file generating
- Seo friendly urls
App
NEXT_PUBLIC_APP_URL
- App url, for development usehttp://localhost:3000
Mongo db
MONGODB_URI
- Mongo db connection string with username and passwordMONGODB_NAME
- Database name
Firebase client
NEXT_PUBLIC_FIREBASE_API_KEY
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
NEXT_PUBLIC_FIREBASE_PROJECT_ID
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
NEXT_PUBLIC_FIREBASE_APP_ID
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
Firebase admin
FIREBASE_CLIENT_EMAIL
FIREBASE_PRIVATE_KEY
FIREBASE_DB_URL
- Go to /secret route
- Log in with credentials:
- Email: example@123.xxx
- Password: example852
swr
,
styled-reset
,
styled-components
,
speakingurl
,
request-ip
,
react-toastify
,
react-final-form
,
body-scroll-lock
,
connect-mongo
,
nprogress
,
express-rate-limit
,
final-form
,
firebase
,
firebase-admin
,
js-cookie
,
next-translate
,
mongodb
,
mongodb-core
,
next
,
next-connect
,
next-translate
,
react
,
react-dom
,
next-sitemap
,
babel-plugin-styled-components