cl1ckname / micromango Goto Github PK
View Code? Open in Web Editor NEWManga reading service
Manga reading service
one manga should have multiple genres, filter manga list according genres
Привет ~ヾ(・ω・)
У проекта совсем нет инструкций и руководств по развертыванию хотя бы dev-окружения, что усложняет возможно как-то пощупать исходный код без сильного погружения в него. Было бы замечательно добавить хотя бы отдельную WIP ветку с таким руководством. Добавить .env.example с набором переменных и значений для простого тестирования, рекомендации по миграциям и т.п.
There is a danger moment about user registration
func (s *service) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.UserResponse, error) {
u, err := findByEmail(s.db, req.Email)
if err != nil {
if !errors.Is(err, gorm.ErrRecordNotFound) {
return nil, err
}
}
u.Email = req.Email
u.PasswordHash = hashString(req.Password, s.salt)
savedU, err := saveUser(s.db, u)
if err != nil {
return nil, err
}
if _, err := s.profile.Create(ctx, &profile.CreateRequest{
UserId: savedU.UserId.String(),
Username: req.Username,
}); err != nil {
return nil, err
}
return &pb.UserResponse{
UserId: savedU.UserId.String(),
Username: req.Username,
}, nil
}
If registered successes but profile creating failed user won't be able to register again and also won't be able to visit his profile. I suppose there should be an algorithm for distributed transactions (actually idk). Advice me smthng?
Now I use network-mode: host
for every service, this is not correct in my mind. Could someone please update docker-compose file?
i want to add wide cover for profile page
add optional field "liist" to manga preview response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.