. netcore3.0 short URL project

Time:2020-2-27

Wei.TinyUrl

Short URL project based on. Netcore3.0 + MySQL

Project address: https://github.com/a34546/wei.tinyurl

Demonstration effect:

 

 

Quick start

1. Modify the connection string

  • Change ConnectionStrings in appsettings.Development.json to your own MySQL connection

2. Update database

  • Open package manager console
  • Select the wei.tinyurl.data project and execute the update database command

3. Start project

  • Set wei.tinyurl.api as the startup project
  • F5 operation project

4. Generate short link

  • Browser input: http: / / localhost: 5000 / API / create? Url = HTTPS: / / GitHub. COM / a345546 / Wei. Tinyurl. Git & key = 123456789
  • Access generated short links