A Reddit-like community platform built with ASP.NET Web Forms and Microsoft SQL Server. Users can create communities, share posts, comment, and vote on content.
- User registration and authentication
- Create and join communities
- Post creation (text, images)
- Commenting system
- Upvote/downvote functionality
- User profiles
- Search functionality
- Community management
- Notifications
- Visual Studio 2019 or later
- Microsoft SQL Server 2016+ (or SQL Server Express)
- SQL Server Management Studio (SSMS)
- .NET Framework 4.7.2 or later
- Windows 10/11
git clone https://github.com/yourusername/reddit-clone-aspnet.git- Open Visual Studio
- File → Open → Project/Solution
- Select the
.slnfile
Visual Studio will automatically restore packages. If not:
- Right-click Solution → Restore NuGet Packages
- Open SQL Server Management Studio
- Connect to your SQL Server instance
- Create new database named
RedditCloneDB
Open Web.config and update the connection string:
<connectionStrings>
<add name="DefaultConnection"
connectionString="Data Source=YOUR_SERVER_NAME;Initial Catalog=RedditCloneDB;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>Common server names:
localhostor.- Local SQL Server.\SQLEXPRESS- SQL Server Express(localdb)\MSSQLLocalDB- LocalDB
- Press
F5or click Start - Application opens at
http://localhost:[port]/
- Click "Sign Up" to create an account
- Login with your credentials
- Click "Create Community"
- Enter community name
- Submit
- Select a community
- Click "Create Post"
- Click on any post to view and comment
- Use arrows to upvote/downvote
RedditClone/
├── Avatars/ # User avatar uploads
├── CommunityImages/ # Community images
├── CSS/ # Stylesheets
├── Images/ # Static images
├── Login.aspx # Login page
├── Registration.aspx # Registration page
├── CommunityPage.aspx # Community view
├── PostDetails.aspx # Post details
├── Profile.aspx # User profile
├── Web.config # Configuration
└── *.cs # Code-behind files
Main tables:
- Users - User accounts
- Communities - Community information
- Posts - User posts
- Comments - Post comments
- CommunityMembers - Community memberships
- Votes - User votes
- Backend: ASP.NET Web Forms, C#
- Database: Microsoft SQL Server
- Frontend: HTML, CSS, JavaScript, Bootstrap
- Authentication: ASP.NET Forms Authentication
- Check SQL Server is running (Services → SQL Server)
- Verify connection string in Web.config
- Test connection in SSMS first
- Clear browser cache and cookies
- Check database has Users table with data
- Verify Web.config authentication settings
- Check folder permissions for Avatars and CommunityImages
- Verify file size limits in Web.config
This project is open source and available under the MIT License.
⭐ If you find this project useful, please give it a star!