Git Product home page Git Product logo

vulcan's Introduction

Reference only - original repo and implementation in Azure DevOps

About

This .NET solution aims to serve as a learning space for development and testing within the Microsoft ecosystem.

Dependencies

  • .NET Core SDK

Intro to .NET Core

.NET is a free, cross-platform, open source developer platform for building many different types of applications. You can follow Microsoft's guide to get up and running in 10 minutes

Getting started

  1. Clone this repo to your local machine via Git
  2. Use dotnet build to download package dependencies and build the app
  3. Switch to the API directory and build the SQLite db with Entity Framework using dotnet ef database update
  4. Start the API service with dotnet run
  5. Try the users endpoint in your browser: http://localhost:5000/api/users
[
    {
        "id": 1,
        "firstName": "Ross",
        "lastName": "Aubrey-Smith",
        "email": "ross.aubrey-smith@vulcan"
    },
    {
        "id": 2,
        "firstName": "Captain",
        "lastName": "Deadpool",
        "email": null
    }
]
  1. To test the app, run the dotnet test --no-build command from the tests directory in a new terminal
  2. You can rebuild the test project after updates while the API app is still running by using dotnet build --no-dependencies

Entity framework

If you make changes to the model, you can use the dotnet ef migrations add command to scaffold a new migration. Once you have checked the scaffolded code (and made any required changes), you can use the dotnet ef database update command to apply the schema changes to the database.

Contribute

Feel free to develop the API, add more tests, setup a UI or anything else you can think of!

Git

This project makes use of git and for now it is recommended to follow a Feature Branch model

Pull requests

The master branch uses a policy restriction to enforce code reviews via Pull Request. Simply make your changes locally (in your feature branch), then Commit and Push. Please use good commit messages and naming for your PR

Troubleshooting Git

Forgot to branch? Commited straight to master and now can't push your changes? Simply create a new branch from your local, then revert master to the same commit as origin.

vulcan's People

Stargazers

Maximilian Chaplin 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.