GithubHelp home page GithubHelp logo

rogvan / devops-course-workshop-module-07-learners Goto Github PK

View Code? Open in Web Editor NEW

This project forked from corndelwithsoftwire/devops-course-workshop-module-07-learners

0.0 0.0 0.0 472 KB

Workshop Repo for Module 7 of the DevOps Course

JavaScript 11.69% C# 36.67% TypeScript 5.27% HTML 34.82% SCSS 9.36% Dockerfile 2.17%

devops-course-workshop-module-07-learners's Introduction

Workshop Module 07

This repository is for learners on Corndel's DevOps apprenticeship.

Before the workshop you should complete all the set-up instructions in before_you_start.md.

During workshop 7 you'll be following the instructions in during_workshop_7.md.

This repository contains a minimal .NET Core app. You don't need to worry about exactly how the code works, but you should be able to build, test and run it. It uses npm which is a package manager for the Node JavaScript platform.

Set up the app

Whilst it is helpful to be able to experiment locally, getting the app running is not required for the exercise. If you are having trouble with it then continue with the Part 1 instructions in during_workshop_7.md.

Build

  1. Run dotnet build from the terminal in the project folder. This will build the C# code.
    • If you get errors resolving NuGet packages try running dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org to add the main NuGet registry as a package source. You can use dotnet nuget list source to see what package sources NuGet is using.
  2. From the DotnetTemplate.Web folder, run npm install (first time only) and then npm run build. This will install dependencies and then build the TypeScript code.
    • If you are on Windows and see errors during installation containing "gyp ERR", you may need to first run npm install --global windows-build-tools (and restart your terminal).
    • npm ci is another way of installing dependencies that will strictly follow the versions listed in package-lock.json. So this can be used for completely reproducible builds.

Test

  1. Run dotnet test inside the project folder. This will run the C# tests in the DotnetTemplate.Web.Tests project.
  2. Run npm t inside the DotnetTemplate.Web folder. This will run the TypeScript tests in DotnetTemplate.Web/Scripts/spec. They're run using Jasmine.
  3. Run npm run lint inside the DotnetTemplate.Web folder. This will run linting on the TypeScript code, using eslint. Linting refers to checking the codebase for mistakes, either functional or stylistic. This project's linting currently reports zero errors, two warnings.

Run

  1. Run dotnet run in the DotnetTemplate.Web folder. This will start the app.
  2. You can now see the website by going to http://localhost:5000/. You should see something like the image below.

Mini app

devops-course-workshop-module-07-learners's People

Contributors

rogvan avatar hugh-emerson avatar benramchandani avatar jonesey13 avatar joshadampowell 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.