Sample web application to make your links shorter!
This is my first project written with .NET Core. It was developed to do some training with MVC model, Entity Framework and Bootstrap. I know there is a lot to do and some things are not good but I will try to develop this project in future.
- .NET Core - version 2.2
- Entity Framework Core - version 2.2
- Bootstrap - version 4.3.1
- Make sure you have installed and it's up and running Docker
- Make sure you have installed .NET Core SDK
- Open terminal and clone this repo as below:
git clone https://github.com/tomaszkyc/link-shorter.git
cd link-shorter
- Here run command which will create a container with a database:
docker-compose up
- In another terminal tab / window go to location /LinkShorter/LinkShorter as below:
cd LinkShorter/LinkShorter
- Run application with command below:
dotnet run
- At the end of command you should see output like below:
Hosting environment: Development
Content root path: /Users/tomasz/git/link-shorter/LinkShorter/LinkShorter
Now listening on: https://localhost:5001
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
-
Go to one of given web address and you should see main page:
-
To login as Admin use credentials from Admin section inside config file:
LinkShorter/LinkShorter/appsettings.json
List of features ready and TODOs for future development
- Create short links in just a seconds
- Save long links and view statistics about use per day, web browser and platform
- Manage users by simple admin panel with 3 roles:
- User - can create random short links, see statistics about usege
- PowerUser - can create random and custom short links, see statistics about usege
- Admin - can manage users in app, create random and custom short links, see statistics about usege
To-do list:
- Add logging to application
- Add new statistics and CSV-download statistics
- Reorganize controllers paths
- Add unit testing
Project is no longer continue because of no more time and need to learn other things connected with .NET Core and Entity Framework Core.
The idea of making links shorter is old. My inspiration was https://bitly.com which has outstanging market share.
Created by @tomaszkyc - feel free to contact me!