wei.tinyurl

基于.netcore3.0 + mysql开发的短网址项目

项目地址:https://github.com/a34546/wei.tinyurl

演示效果:

 

 

快速开始

1. 修改连接字符串

  • appsettings.development.json中connectionstrings修改为自己的mysql连接

2. 更新数据库

  • 打开程序包管理器控制台
  • 选中wei.tinyurl.data项目,执行 update-database命令

3. 启动项目

  • 设置wei.tinyurl.api为启动项目
  • f5运行项目

4. 生成短链接

  • 浏览器输入 http://localhost:5000/api/create?url=https://github.com/a34546/wei.tinyurl.git&key=123456789
  • 访问生成的短链接