Giter Club home page Giter Club logo

stacksmith-dotnet-with-mysql's Introduction

.NET Core Application with DB (MySQL): Simple asp net core todo app

View in Stacksmith

This is an example to show how to deploy an application using the .NET Core Application with DB (MySQL) stack template in Bitnami Stacksmith.

Package and deploy with Stacksmith

  1. Go to stacksmith.bitnami.com
  2. Create a new application and select the .NET Core Application with DB (MySQL) stack template.
  3. Select the targets you are interested on (AWS, Kubernetes,...)
  4. Upload the simple-asp-net-core-2-todo-app.zip file (which can be found in releases for the project.
  5. Upload the boot.sh script from the scripts/ folder.
  6. Click the Create button.
  7. Launch it in AWS or download the helm chart to run it in Kubernetes
  8. Access your application: http://IP for AWS or http://IP:8080 for Kubernetes and Azure

Scripts

There application requires a boot script that performs application specific initialization.

boot.sh

This script takes care of initializing the database and configuring the application: Basically, it does:

  • modify appsettings.json file to specify the connection to database
  • initialize and populate the database

Packaging the application from source code

The simple-asp-net-core-2-todo-app.zip file can also be created by building the application in the app/ folder. To build it, you need to have .NET Core SDK installed.

Simply run the following command in the app/ folder:

dotnet publish -c Release

The command sets up all required dependencies, builds the application and creates a publish folder with the application and dependencies packages.

Next, package the application - such as by doing the following:

$ cd app/bin/Release/netcoreapp2.0/publish && zip -r -9 ../simple-asp-net-core-2-todo-app.zip .

stacksmith-dotnet-with-mysql's People

Contributors

j-fuentes avatar

Watchers

James Cloos avatar  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.