Skip to content

Banking-Software/Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banking Software

Hosting

http://134.209.158.129/

User login Creds: Username: ashish Password: Ashish@123 Url: http://134.209.158.129/

Superadmin login Username: Admin Password: Banking@123 Url: http://134.209.158.129/sadminlogin

Docker

Create Docker file of backend project

# Use the official .NET 6 SDK image as the base image
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

# Set the working directory in the container
WORKDIR /app

# Copy the project file and restore dependencies
COPY *.csproj ./
RUN dotnet restore

# Copy the rest of the source code
COPY . .

# Build the application
RUN dotnet publish -c Release -o out

# Use the official .NET 6 runtime image as the base image
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime

# Set the working directory in the container
WORKDIR /app

# Copy the output from the build image
COPY --from=build /app/out ./

# Expose the port the application will listen on
EXPOSE 80

# Set the entry point for the container
ENTRYPOINT ["dotnet", "MicroFinance.dll"]

Build Docker image out of above configuration

$ docker build -t ashish727/financebackend .

Run dockerized version of backend code

$ docker run -d -p 5000:80 ashish727/financebackend:latest 

Run SQL Server in docker container

$ docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=banking@123' -p 1433:1433 --name sql_server_container -d mcr.microsoft.com/mssql/server:2022-latest

About

Backend in ASP.NET, SQL Server as Database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •