Skip to content

A URL shortener application built with ASP.NET Core, Entity Framework Core, and PostgreSQL.

Notifications You must be signed in to change notification settings

jamwitk/url-shortener-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

A simple URL shortener application built with ASP.NET Core, Entity Framework Core, and PostgreSQL.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/jamwitk/url-shortener-dotnet.git
    cd shorturl
  2. Install npm dependencies:

    npm install
  3. Set up the database:

    Update the connection string in appsettings.json:

    "ConnectionStrings": {
        "UrlShortenerContext": "Host=localhost;Database=shorturl;Username=yourusername;Password=yourpassword"
    }
    
  4. Apply migrations:

    dotnet ef database update

Running the Application

  1. Run the application:

    dotnet run
  2. Open your browser and navigate to your localhost

Deployment

  1. Publish the application:

    dotnet publish -c Release
  2. Deploy the published files to your server.

  3. Ensure your server has the necessary environment variables set for the connection string.

  4. Run the application on your server.

License

This project is licensed under the MIT License.

About

A URL shortener application built with ASP.NET Core, Entity Framework Core, and PostgreSQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published