Giter Site home page Giter Site logo

aspnetcore3.1angular10.1's Introduction

Full Stack ASP .Net Core 3.1 and Angular 10.1

This was developed and tested in Linux 5.4.x only.

1. Docker

1.1 Prerequisite

1.2 Running Application

The following command starts SQL Server 2019, .Net Core API, Angular Webapp, and container for EF Core tool.

docker-compose up

To view logs of a specific service run docker-compose logs -f <service_name> in a different terminal. E.g. docker-compose logs -f api

1.3 DB Initialization

  • Create a database

    Create a database using SQL Server Client

    CREATE DATABASE WorldCities;
  • Updates the DB to the last migration

    Use docker-compose exec migrations dotnet ef command to deal with DB migration

    docker-compose exec migrations dotnet ef database update

1.4 Running Tests

  • API Tests

    docker-compose -f docker-compose.tests.yml up api-tests
  • Webapp Tests

    docker-compose -f docker-compose.tests.yml up webapp-tests

2. Local

2.1 Prerequisite

2.2 DB Initialization

  • Create a database

    Create a database using SQL Server Client

    CREATE DATABASE WorldCities;
  • Updates the DB to the last migration

    dotnet ef database update

2.3 Running Application

The following command starts .Net Core API and Angular Webapp.

dotnet watch --project=WorldCities run

2.4 Running Tests

  • API Tests

    dotnet watch --project=WorldCities.Tests test
  • Webapp Tests

    cd WorldCities/ClientApp/
    npm test

aspnetcore3.1angular10.1's People

Contributors

himalay avatar

Stargazers

 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.