- Download or clone the project
- Use visual studio code latest version and dotnet core 6.0
- Run the project from terminal by command 'dotnet build' and then 'dotnet run'
- or you can debug by visual studio
- Should docker install to your device and login to docker destop , actually we will need docker id for deploy to docker , otherwise you will need to login during docker run from terminal
- run the command to your terminal => docker run --rm -v ${pwd}:c:\app -w c:\app mcr.microsoft.com/dotnet/sdk:6.0 dotnet publish -c Release -o out
- run the command to your terminal => docker build -t yourdockerid/dockerapi .
- run the command to your terminal => docker run -p 8080:80 yourdockerid/dockerapi
- if you want to push to your docker repository, then run the command to your terminal => docker push smhafizurrahman/dockerapi
- After adding model and update Customer model and context
- Execute dotnet ef migrations add CustomerModel
- run for download MS SQL server to Docker => docker run -e 'Accept_EULA=Y' -e "SA_PASSWORD=yourpassword" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
- Then execute => dotnet build , check your MS SQL server, the database and customer table will create automatically and check the demo data in the table
- Then Exxecute for the docker run => docker build -t yourdockerid/dockerapi .
- docker run -p 8080:80 yourdockerid/dockerapi
- docker-compose up
dockerapi's Introduction
dockerapi's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.