Skip to content

URL Shortener Application created using React and ASP.NET Core

Notifications You must be signed in to change notification settings

govind1996/URLShortenerApp

Repository files navigation

URL Shortener Project Created using React and ASP.NET CORE APIS

About Project

This project has two parts

  1. URLShortenerAPI: REST API created using ASP.NET Core
  2. Shortify: A React UI app to consume the URLShortenerAPI

About Platform Used

Microsoft Visual Studio Community 2019

Link to download Microsoft Visual Studio Community 2019: - https://visualstudio.microsoft.com/vs/

Microsoft SQL Server 2018

Link to download SQL Server Express: - https://www.microsoft.com/en-in/download/

Visual Studio Code

Link to download Visual studio code: - https://code.visualstudio.com/download

Depenedencies

External packages which are used in .Net Core Project

  1. JWT Token for Authentication of APIS
  2. AutoMapper
  3. EntityFramework
  4. Swashbuckle.AspNetCore

External packages which are used in React Project

  1. @material-ui
  2. react-redux
  3. moment
  4. react-copy-to-clipboard
  5. redux-thunk
  6. axios

How To Run Both Projects side by side

  1. First of all Clone repository to your local machine which have two project.
  2. Setting Up Database
    • Open UrlShortnerDbContext.cs file and add connection string of Database
    • Open cmd in DAL folder and run following commands
      • dotnet tool install --global dotnet-ef
      • dotnet ef database update
  3. Running URLShortenerApi
    • Open appsettings.json and add connection string
    • Open cmd and CD to URLShortenerApi folder and run following command to run Api service
      • dotnet build
      • dotnet run
    • To run tests use
      • dotnet test
  4. Running Shortify (UI)
    • Open appsettings.json and add connection string
    • Open cmd and CD to shortify folder and run following command
      • dotnet build
      • dotnet run

Note : Run Visual studio, Visual Studio Code or Command Prompt as Administrator in windows system to avoid some issue.

About

URL Shortener Application created using React and ASP.NET Core

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published