Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.32 KB

README.md

File metadata and controls

68 lines (43 loc) · 1.32 KB

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.