GithubHelp home page GithubHelp logo

dylanbeattie / codecamp Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.22 MB

Live coding session for CodeCamp RO, 23 September 2021

Batchfile 0.57% Dockerfile 0.17% TSQL 0.41% Shell 0.52% C# 14.53% HTML 3.50% CSS 1.85% JavaScript 77.21% Python 1.24%

codecamp's Introduction

Autobarn

This is the sample application for Dylan Beattie's workshop on distributed systems with .NET. It's an Asp.NET Core web application based on very simple data model for advertising used cars for sale.

Getting Started

Autobarn uses a MS SQL Server database that's available as a Docker container image. You'll need Docker installed to run it.

docker run -p 1433:1433 -d ursatile/ursatile-workshops:autobarn-mssql2019-latest

Run the Autobarn.Website project. (The sample projects are configured for .NET 5.0, but will run on .NET Core 3.1 or Framework 4.6 if you modify the .csproj files to change the project targets - see below)

cd dotnet
cd Autobarn.Website
dotnet run

Browse to http://localhost:5000 and you should see the Autobarn homepage:

image-20210519192001483

Click the "All Cars" link (or go to http://localhost:5000/vehicles) and you should see a long list of car registration numbers.

Changing the .NET Target Version

You'll need to edit Autobarn.Website\Autobarn.Website.csproj and Autobarn.Data\Autobarn.Data.csproj

Find the line:

<TargetFramework>net5.0</TargetFramework>

To run on .NET Framework 4.6, change this to: <TargetFramework>net46</TargetFramework>

To run on .NET Core 3.1, change this to: <TargetFramework>netcoreapp3.1</TargetFramework>

(You can see a full list of .NET versions and target frameworks at https://docs.microsoft.com/en-us/dotnet/standard/frameworks)

codecamp's People

Contributors

dylanbeattie avatar

Watchers

 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.