Coder Social home page Coder Social logo

mahedee / code-sample02 Goto Github PK

View Code? Open in Web Editor NEW
63.0 7.0 96.0 904 KB

Sample code and projects. For details please visit my blog https://mahedee.net

Home Page: https://mahedee.net

License: MIT License

C# 89.43% HTML 0.95% CSS 0.82% JavaScript 8.06% Dockerfile 0.75%
asp-net-core clean-architecture csharp design-patterns microservice rabbitmq software-architecture

code-sample02's People

Contributors

mahedee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

code-sample02's Issues

Ocelot Api Gateway doesnt work.

I followed your online guide and have also tried downloading your repository.

When selecting a Definition in the dropdown, othat than the BFF Gateway, Swagger gives an Error 500
OR just an error without errorcode:

Fetch error
Internal Server Error /swagger/docs/1.0/location

image

image

Maybe its Ocelot that has changed or Swashbuckle ?

Ocelot now only works with .NET 7
and i think Swashbuckle also changed a few things over the past few months.

Would you mind looking into it ?

use ocelot and swagger without running all microservices (Development Environment)

Hi everyone,

I have successfully implemented this project, there is only one point, if we disable the Swagger of one of these microservices, it will not come up and only the microservice itself will run, in this case, the services related to that microservice will not appear in the Swagger related to BFF.

How can we solve this problem?

Identity service method are not work correctly

Those methods name must be displaced

public async Task GetUserIdAsync(string userName)
{
var user = await _userManager.Users.FirstOrDefaultAsync(x => x.UserName == userName);
if (user == null)
{
throw new NotFoundException("User not found");
//throw new Exception("User not found");
}
return await _userManager.GetUserIdAsync(user);
}

    public async Task<string> GetUserNameAsync(string userId)
    {
        var user = await _userManager.Users.FirstOrDefaultAsync(x => x.Id == userId);
        if (user == null)
        {
            throw new NotFoundException("User not found");
            //throw new Exception("User not found");
        }
        return await _userManager.GetUserNameAsync(user);
    }

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.