This is the code behind https://www.voat.co.
Voat is a media aggregator and community platform developed in C# ASP.NET MVC 5.
Voat uses SQL server and .NET framework 4.5.
The following 3rd party libraries/extensions are used:
- Markdowndeep (https://www.toptensoftware.com/markdowndeep)
- Entity Framework (https://entityframework.codeplex.com)
- WebApiThrottle (https://github.com/stefanprodan/WebApiThrottle)
- SignalR (https://github.com/SignalR/SignalR)
- OpenGraph-Net (https://github.com/ghorsey/OpenGraph-Net)
- .NET Image Library (https://www.nuget.org/packages/ImageLibrary)
- HtmlAgilityPack (https://www.nuget.org/packages/HtmlAgilityPack)
- Bootstrap (https://getbootstrap.com)
- jQuery (https://jquery.com)
Follow these steps to get up and running:
- Create databases and database owners. Voat uses 2 SQL databases to store messages, comments, votes, users etc. Default database names are whoaverse and whoaverse_users. You can use whoaverse.sql and whoaverse_user.sql to generate necessary tables for each respective database.
- After cloning this repository, you will need to modify and place Web.config file in WhoaVerse folder (the same folder where the file packages.config is located). You need to modify the following 2 connection strings in this file to reflect your SQL server address, port, database names and database usernames: whoaverseUsers and whoaverseEntities
<add name="whoaverseUsers" connectionString="Data Source=yourdomain.com, 1433;Initial Catalog=whoaverse_users;Persist Security Info=True;User ID=yourusername;Password=yourpassword" providerName="System.Data.SqlClient" />
<add name="whoaverseEntities" connectionString="metadata=res:https://*/Models.WhoaverseEntityDataModel.csdl|res:https://*/Models.WhoaverseEntityDataModel.ssdl|res:https://*/Models.WhoaverseEntityDataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=yourdomain.com;initial catalog=whoaverse;persist security info=True;user id=yourusername;password=yourpassword;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
- You need to sign up for recaptcha service at https://www.google.com/recaptcha/admin#whyrecaptcha to get your public and private recaptcha keys
- Once you have your recaptcha keys, you need to modify the Web.config file and in section
<appSettings>
, you need to add the following for your keys:
<add key="recaptchaPublicKey" value="your public key goes here" />
<add key="recaptchaPrivateKey" value="your private key goes here" />
- Reinstall dependencies (binaries for NuGet packages) by issuing the following command in Package Manager Console (when asked to overwrite existing files, choose no for all: Update-Package -Reinstall
Start by creating your user account. The frontpage will be empty, so you should start by creating a subverse. After creating your subverse, you can visit it (localhost/v/yourtestsubverse) and start posting stories or links. You can then comment on these stories and vote on them.
This was just a hobby project to help me get a better understanding of C# and ASP.NET MVC and Entity Framework.
- based in Switzerland, no censorship policy as long as content is legal in Switzerland
- ad revenue sharing model (in development, we will disclose more details soon) where community is rewarded with real money for quality original content
- deterministically scaling voting quota
- limited voting (new users need to gain a certain amount of points before they are able to vote without restrictions)
- limited number of owned/moderated subs per user (10)
- voat has increased focus on privacy. It enables users to delete their account by automatically overwriting every comment and every submission the user has made with a string "deleted", before proceeding to remove the user account from user credentials database.
- built-in night mode
- subverse set system similar to the one used on Google News
- realtime notifications for user mentions, post and comment replies
- realtime chat for every subverse
- markdown toolbar for user friendly text editing
- automatic expando creation for many popular services
- anonymized mode: subverse owners can irreversibly convert their subverse to anonymized mode which hides all usernames and disables all voting actions within that subverse
- responsive design which works great on mobile out of the box
- user profiles show statistics about user activity, for example, submission distribution and highest-lowest rated submissions and a short biography with avatar
Voat aims to make a media aggregator platform with new ideas and unique features that set Voat apart from similar platforms.
There is a whole lot of work to be done, code contributions are more than welcome. By submitting a pull request, you are agreeing for your contribution to be distributed under GPL V3 license (the same license voat uses for the rest of voat project).