Skip to content

A local source of articles so you can test Readup without interfacing with a 3rd party server.

License

Notifications You must be signed in to change notification settings

reallyreadit/article-test-server

Repository files navigation

reallyread.it article-test-server

Setup Guide

If you already completed the setup guide for the api repository you can skip steps 1 and 2 as this project shares the same development environment.

  1. Install the .NET Core 3.1 SDK: https://dotnet.microsoft.com/download

  2. Configure the ASP.NET core environment for development: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-3.1#set-the-environment

     export ASPNETCORE_ENVIRONMENT=Development
    
  3. Create the following configuration files and modify as required. Network delay values are in milliseconds and are used to simulate a slow article server:

     appsettings.json
    
    {
      "NetworkDelay": {
        "ArticlePageDelay": 0,
        "CssFileDelay": 0,
        "HomePageDelay": 0,
        "ImageFileDelay": 0,
        "JavascriptFileDelay": 0
      },
      "Logging": {
    		"LogLevel": {
    			"Default": "Information",
    			"Microsoft": "Warning",
    			"Microsoft.Hosting.Lifetime": "Information"
    		}
    	},
    	"AllowedHosts": "*",
    	"Kestrel": {
    		"Endpoints": {
    			"Http": {
    				"Url": "http://localhost:5002"
    			}
    		}
    	}
    }
  4. Restore packages

     dotnet restore
    
  5. Build and run the server

     dotnet watch run
    

About

A local source of articles so you can test Readup without interfacing with a 3rd party server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published