Code Monkey home page Code Monkey logo

caztonshoppingcart's Introduction

ShoppingCart

This is a simple project with two pages:

  • Products page
  • Checkout page

Click on the cart icon after an item has been added. Refresh the page to refresh the cart.

Prerequisites

AppSettings DocumentDb Credentials for DocumentDb Emulator

  • If you are using the credentials from your own DocumentDB, please replace the values of Endpoint and Key in the project appsettings.json file. Otherwise, if you are using DocumentDB Emulator, these settings below are already set on the project.
  "DocumentDb": {
    "Endpoint": "https://localhost:8081/",
    "Key": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==",
    "Name": "shoppingcartdemo"
  }

Setup Instructions

Running using dotnet cli

  1. Download/Clone the code
  2. Verify that DocumentDB Emulator or your own DocumentDB instance is up and running
  3. Open a Console Window and navigate to MainSite
  4. Run "npm install"
  5. Run "dotnet restore"
  6. Run "dotnet build"
  7. Run "dotnet run"

Running using Visual Studio 2017

  1. Download/Clone the code
  2. Open the Solution in Visual Studio 2017
  3. Verify that DocumentDB Emulator or your own DocumentDB instance is up and running
  4. From the launchSettings.json (./MainSite/Properties/launchSettings.json), copy the applicationUrl
  5. In the app.config.ts (./MainSite/ClientApp/app/app.config.ts), paste the applicationUrl you just copied into the apiEndpoint
  6. Right click package.json, and select Restore Packages
    • You can see progress in the Output window with Bower/npm as your selection in Show output from:
  7. Right click the solution, select Restore NuGet Packages
  8. Rebuild the solution
  9. Click the Green Run Button / Hit F5

caztonshoppingcart's People

Contributors

jefflomax avatar

Watchers

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