Krealgram
An Instagram-style social network
Social network · React, Vite · Node.js, Express, MongoDB · Desktop and phone
Open websitekrealgram.comSource on GitHubThe Krealgram feed with sunsets, scrolled the way a visitor sees it

A social network built from screen to server
A React and Vite client, a Node.js, Express and MongoDB server, live updates over Socket.IO. Sign-in by username or email with confirmation and password reset, photo and video posts, Latest Videos stories, forwarding posts to chats, search and notifications. Files live on Google Drive and are served through its own proxy.
Build a whole social network, from the interface to the server: a feed of photos and videos, profiles, likes, comments, messages and notifications, with a guest mode to look around without an account.
The same feed on a phone
The feed, profile and search reflow for a narrow screen.


Stories, profiles and sharing posts

Stories

Share a post

Profile
The latest sunset post
How a like works
One request changes the like in three collections at once, inside a single MongoDB transaction, and writes a notification for the post author. This is an excerpt from the real file in the repository.
const express = require('express');
const router = express.Router();
const likeController = require('../controllers/likeController');
const authMiddleware = require('../middlewares/authMiddleware');
// @route POST /api/likes/:postId/toggle
// @desc Поставить или убрать лайк с поста
// @access Private
router.post('/:postId/toggle', authMiddleware, likeController.toggleLikePost);
module.exports = router; From feed to notifications
- Feed and stories
- Photo or video posts with captions and a Latest Videos row with full-screen stories.
- Share a post
- A post link with a Copy button and forwarding the post to a chat via Send in message.
- Profiles and search
- Profiles with posts, followers and following, a separate edit page, user search.
- Messages and notifications
- Chats with forwarded posts, a notifications panel and an email for each new message, all over Socket.IO.
- Guest mode
- Guests see the feed, profiles and search; any action asks them to sign in.
I can build a website like this for you.
Need something like this?
