Image of javascript frontend with asp.net core 3.1 Web API.
10K+
This is a Docker image of Javascript front-end for Web API named BookStoreAPI developed with asp.net core 3.1 using Entity Framework Core 3.1 and SQL Server 2017 as back-end to demonstrate simple out of the box CRUD operations.
Docker should be setup on your machine.
1- Create docker-compose file.
Get the docker-compose.yml file from my GitHub repo - https://github.com/sanjaysaini2000/javascript-aspnetcore3-webapi/blob/master/docker-compose.yml and save the content in docker-compose.yml on your machine.
2- Pull the images
Open the command terminal on the path of docker-compose.yml and run following command.
docker-compose pull
3- Start the app
Run following command to create/run the containers
docker-compose up
Note - It will take same time for sql server to get ready so API will keep trying to connect to it before you get the following output on the terminal.
Apply init migration...
Adding initial data...
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://[::]:80
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app
4- Now open the browser and type in the address bar http://<host URL>:8000
E.g. http://192.168.99.100:8000
Note - You can get host URL by running "docker-machine IP" command.
5- To kill and remove the container run following command
docker-compose down
Content type
Image
Digest
Size
90.4 MB
Last updated
about 6 years ago
docker pull sanjaysaini2000/javascript-aspnetcorewebapi