main
1socialChat
A fullstack social media platform with real-time chatroom functionality.
Features
- User authentication (username/password)
- Customizable user profiles (bio, profile picture, links)
- Post text, images, and videos (up to 10MB)
- Edit and delete posts
- Real-time global chatroom
- User-created chatrooms
- Post reactions
- Clickable usernames linking to profiles
Tech Stack
- Backend: Node.js, Express, Socket.io
- Database: PostgreSQL
- Frontend: Vanilla JavaScript, HTML5, CSS3
- Auth: bcrypt password hashing, express-session
Setup
- Install dependencies:
npm install
-
Create a
.envfile based on.env.exampleand configure your database connection. -
Set up PostgreSQL database:
psql -U postgres
CREATE DATABASE socialchat;
-
Run the database schema (see server/schema.sql)
-
Start the server:
npm start
# or for development with auto-reload
npm run dev
Deployment
Ready for Railway deployment with PostgreSQL plugin.
Description
Languages
JavaScript
80.6%
CSS
12.5%
HTML
6.9%