Minimalistic version of Stack Overflow website. Users can postquestions, answer them and also can vote others’ answers. Besidesquestioner can also mark as accepted one correct answer.

Firstly, clone the project-
https://github.com/nayeemsweb/StackOverflow-Lite.git
Secondly, Open the project in Visual Studio by running theStackOverflow.sln solution file -
cd StackOverflow-Lite/src/StackOverflow
Thirdly, go todocs folder -
cd StackOverflow-Lite/docs
There you will find a batch file namedStackOverflow_Migration_Runner.bat.Run that batch file to update database -
Step(1):Apply Migration[option 2]
Step(2):Update All[option 1]
or, You may manually run theUpdate Database using the following commandin theProject Manager Console in Visual Studio.
dotnet ef database update -p .\Applications\StackOverflow.Web -c ApplicationDbContext
This will create a database namedStackOverflowDb in your SQL Server(actually SSMS) and also the table(s) accordingly.
⚠️Your must haveSQL Server andSQL Server Management Studioinstalled on your machine.
Go to -
cd StackOverflow-Lite\src\StackOverflow\Applications\StackOverflow.Web
In this paththere is a file namedappsettings.json.If you face any issue updating the database then configure this lineaccordingly to your machine configuration -
"ConnectionStrings": { "DefaultConnection": "Server=.\\SQLEXPRESS;Database=StackOverflowDb;Trusted_Connection=True;" },
You may change theServer value according to your configuration.
Frontend: ASP.NET Web App (MVC), Bootstrap UI Templates
Backend: ASP.NET (Core) 6, Entity Framework (Core), Sql Server,Fluent API
Design Patterns: Repository & Unit of Work Patterns
Architecture: Layered Architecture - n-Tier Architecture -(UI, Business Logic & Data Access Layer)
Error Logger: Serilog
Dependency Injection: Autofac
Object-Object Mapper: AutoMapper
- Authentication, Authorization
- Posting Questions (Post)
- Answering those Questions (Comments)
- Voting different Questions and Answers
- Selecting one correct answer as Accepted
❤️ If you do like my work, hit the ⭐️ button above. ❤️
MIT