vborovikov / news

Feed reader app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

News at Home

Feed reader app

How to build and run

To run the project follow these steps:

  1. Clone the repository
  2. Create the app database
  3. Modify appsettings.json or secrets.json to point to the database
  4. Build the project in Visual Studio/VS Code/dotnet CLI
  5. Run the web app and the service program

Assuming you have the SQL Server LocalDB installed with the default instance named MSSQLLocalDB, you can create the database like this:

PS> cd .\news\
PS> sqlcmd -S "(LocalDB)\MSSQLLocalDB" -i .\db\db.sql
PS> sqlcmd -S "(LocalDB)\MSSQLLocalDB" -i .\db\dbup_01.sql

Add the following lines to appsettings.json or secrets.json in News.App and News.Service:

{
    "ConnectionStrings": {
        "DefaultConnection": "Server=(LocalDB)\\MSSQLLocalDB;Database=News;Trusted_Connection=True;MultipleActiveResultSets=true"
    }
}

The app expects the folder C:\Tools\News to exist. This folder is used to store the imported OPML files. You can change the path in the appsettings.json or secrets.json.

For News.App add the following lines:

{
    "Newsreader": {
        "OpmlPath": "C:\\Another\\Path\\"
    }
}

For News.Service add the following lines:

{
    "Newsmaker": {
        "OpmlPath": "C:\\Another\\Path\\"
    }
}

About

Feed reader app

License:MIT License


Languages

Language:C# 45.4%Language:CSS 43.1%Language:HTML 7.3%Language:TSQL 3.2%Language:JavaScript 0.8%Language:PowerShell 0.1%Language:SCSS 0.1%