Coder Social home page Coder Social logo

dockerapi's Introduction

dockerapi

  1. Download or clone the project
  2. Use visual studio code latest version and dotnet core 6.0
  3. Run the project from terminal by command 'dotnet build' and then 'dotnet run'
  4. or you can debug by visual studio
  5. 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
  6. 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
  7. run the command to your terminal => docker build -t yourdockerid/dockerapi .
  8. run the command to your terminal => docker run -p 8080:80 yourdockerid/dockerapi
  9. if you want to push to your docker repository, then run the command to your terminal => docker push smhafizurrahman/dockerapi
  10. After adding model and update Customer model and context
  11. Execute dotnet ef migrations add CustomerModel
  12. 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
  13. 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
  14. Then Exxecute for the docker run => docker build -t yourdockerid/dockerapi .
  15. docker run -p 8080:80 yourdockerid/dockerapi
  16. docker-compose up

dockerapi's People

Contributors

hafiz5007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.