Coder Social home page Coder Social logo

pankajrawat333 / bobs-used-bookstore-classic-ado-dot-net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/bobs-used-bookstore-classic

0.0 0.0 0.0 1.86 MB

License: MIT No Attribution

JavaScript 51.65% C# 21.72% CSS 17.03% HTML 9.51% Dockerfile 0.07% ASP.NET 0.01%

bobs-used-bookstore-classic-ado-dot-net's Introduction

Bob's Used Books Classic

Overview

Bob's Used Books Classic is a backport of the Bob's Used Books Sample Application. Bob's Used Books Classic is an ASP.NET MVC application that targets .NET Framework 4.8.

Prerequisites

To run and debug the application locally you need the following:

To deploy the application to AWS you need the following:

Getting started

Clone the repository or download the source code and open the solution in your preferred IDE. Set Bookstore.Web as the startup project then press F5 to debug the application.

By default, Bob's Used Books Classic is completely disconnected from AWS. When you are ready you can configure the application to use AWS services by deploying the BobsUsedBooksClassicCore CDK stack and updating the service setting in the application's web.config file. The application service settings are found within the <appSettings> section and are prefixed with "Services/":

<appSettings>
    ...
    <add key="Services/Authentication" value="local" />
    <add key="Services/Database" value="local" />
    <add key="Services/FileService" value="local" />
    <add key="Services/ImageValidationService" value="local" />
    <add key="Services/LoggingService" value="local" />
    ...
</appSettings>

Change the value of a service from "local" to "aws" to use the AWS implementation of that service.

With the exception of the database service*, you can use any combination of AWS services you like from within your development environment.

* The RDS for SQL Server database is deployed to a private subnet and is not accessible outside of the application's VPC

Amazon Cognito first run

Use the following credentials the first time you authenticate using the AWS implementation of the authentication service:

  • Username: Admin
  • Password: P@ssword1

Deployment

Bob's Used Books Classic includes a CDK stack called BobsUsedBooksClassicECS that automatically containerizes the application and deploys it to Amazon ECS on Fargate. You need to have Docker Desktop configured to use Windows containers before deploying the CDK stack. To deploy the application, open a terminal window and execute the following command:

cdk deploy BobsUsedBooksClassicECS

When the application is deployed to ECS on Fargate it is automatically configured to integrate with all supported AWS services except for Amazon Cognito. The Amazon Cognito Hosted UI requires login redirects to use HTTPS (except for http://localhost). ECS on Fargate is configured to use HTTP which means the application has to use the local authentication service.

Deleting the resources

When you have completed working with the sample applications we recommend deleting the resources to avoid possible charges. To do this, either:

  • Navigate to the CloudFormation dashboard in the AWS Management Console and delete all BobsUsedBooksClassic stacks, or

  • In a terminal window navigate to the solution folder and run the command cdk destroy BobsUsedBooksClassic*.

bobs-used-bookstore-classic-ado-dot-net's People

Contributors

amazon-auto avatar bradwebber avatar dependabot[bot] 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.