Coder Social home page Coder Social logo

samuraitruong / cloud-code-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.06 MB

Home Page: http://cloudcodechallenge.azurewebsites.net

C# 97.13% CSS 2.70% JavaScript 0.07% Shell 0.10%
dotnetcore xunit mvc webapi-2 netcore-2 mvc-core webapi-core

cloud-code-challenge's Introduction

.NET Core 2.0 Sample project

CI Build status: Travis CI Build Status

prerequisites

To run source code on your local machine you ned

Build

The solution can be build and run directly from Visual Studio 2017 with support .net core 2.0

If you don't have visual studio 2017 install on machine, Solution can be built with .NET core CLI

dotnet restore && dot build

Read more about .NET Core Build

Run

This project is build base on .NET core 2.0 can be ran cross platform on window, Linux, Mac OS and any platform that support by .NET core CLI

after build , to to output folder of MVC project

cd Hiring.Kloud.CodeChallenge/Hiring.Kloud.CodeChallenge.MVC/bin/Debug/netcoreapp2.0 dotnet Hiring.Cloud.CodeChallenge.MVC.dll

Environement configs

The configuration file is place at the configs folder, The file will pickup by global variable environment. for example , to run program with Production config, we can execute below command

set ASPNETCORE_ENVIRONMENT=Development && dotnet Hiring.Cloud.CodeChallenge.MVC.dll

Test

The Test project is implemented with XUnit can be execute from source with Net Core CLI

dotnet test Hiring.Cloud.CodeChallenge.Test/Hiring.Cloud.CodeChallenge.Test.csproj

Test can also run wit compiled Test assembly

dotnet test Hiring.Kloud.CodeChallenge.Test/bin/Debug/netcoreapp2.0/Hiring.Kloud.CodeChallenge.Test.dll

CI & Deploy

This project is pre-configure with (https://travis-ci.org "Travis CI"). When the build finish, Travis will deploy to azure website. Make sure you setup Azure Username, Password, and Sitename inside Travis Setting. Read more about Travis Azure deployment

This repository is deployed at (http://cloudcodechallenge.azurewebsites.net)

The sample API can be access from (http://cloudcodechallenge.azurewebsites.net/api/cars)

cloud-code-challenge's People

Contributors

samuraitruong avatar

Watchers

 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.