Skip to content

Dynamic Blog Website with Image using MongoDb database. It is SSR based website using Next.js

Notifications You must be signed in to change notification settings

sushantgwr87/PhotoSnap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 

Nextjs     Reactjs     CSS     Javascript

Photosnap

A Dynamic Blogging website with image upload using Next.js and server side rendering.

About Project

This project is a based on blog websites with image uploads to server and article or story writing about them by authors.

Currently only Admin(me) can upload image or complete article on this website. This project also uses Next-auth feature to provide login auth for Admin Login.

Development Insights

This project uses SSR Environment with dynamic rendering of data.

Re-usable Components

This time, instead of creating basic components like for different design a new different component, I rather created a complex yet simple to configure component which can be used as per design needs.

Check Card Component and Icon Component for referrence.

Custom Hooks

Instead of using CSS media queries and styling each component as per each screen size, I used custom media query hook to trigger rendering different styled component instead of bulking styling with media queries.

Custom Icons

Normally i use SVG icons direct import in component as only footer or Navbar needs them but in this project it was different. Due to many icons or mock-ups involved as per design, I preferred more dynamic procedure.

I created single component to render those SVG Icons dynamically. All SVG Icons were broken down in parts to work according JSX format.

Check Icon.js file for complete referrence.

Documentation

This project was created using create-next-app. Please do read and follow Next.js Docs for complete understanding of working with Next.js framework.