Open Closed

ABP Microservice 8.3.1 Hello World! #8080


User avatar
0
carl.hallqvist created
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We have managed to get some sort of Hello World working with Blazor, but without any connection to the endpoints in our services.

Our plan was to try migrating the 7.3 project to 8.3.1, but we've had problems with it despite support.

Anyway, we don't quite understand where to place all the projects, and we would need a Hello World that includes the following:

  1. A domain class / entity
  2. An EF Core repository for the domain
  3. An app service
  4. A controller with working Swagger
  5. Unit tests for the entity, repository, app service, and controller

This would be incredibly valuable. This is how we got started with ABP 6 and 7, as you had good documentation for a BookStore and tutorial, and with that knowledge from the ABP Framework, it was easy to start with microservice architecture.

I hope you can provide something like this, because we've completely lost the knowledge we had from version 7 now that we've started with 8.

Best regards.


5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I think you are using the new microservice template; It is a simpler template without many layers.

    It's kind of like a single layer application template, you can put all(service, entity, repository etc..) into one layer. see https://abp.io/docs/latest/tutorials/todo/single-layer?UI=BlazorServer&DB=EF

  • User Avatar
    0
    carl.hallqvist created

    Thanks,

    We did some progress with that information. However, for some reason auth-server did not succeed to authorize admin@abp.io with password 1q2w3E* .

    I did all database migrations (administration, audit-logging, identity and saas) but no success. Not even the log in auth-server indicates some error. Any ideas?

    Best rregards.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You need to run all projects, and they will migrate data during the start of the process.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    https://abp.io/docs/latest/solution-templates/microservice/database-configurations#database-migrations-on-service-startup

  • User Avatar
    0
    carl.hallqvist created

    Thanks! It worked with all services started.

Made with ❤️ on ABP v9.1.0-preview. Updated on October 22, 2024, 09:35