C
C#2w ago
Yasin

Seeking Advice ( m new to dev )

( i dont have any knowledge in front end ) I have implemented my first API (a to-do list API) and pushed it to GitHub. In this project, I covered the following topics: Repository Manager and Base Repository for the Article entity. Service Manager and Service for the Article entity. Article Controller with CRUD operations. Global Error Handling. Logging using NLog. Dependency Injection. Ef core with Mysql Server API Documentation using Swagger. I’m unsure what to focus on next. Could someone please give me some advice? https://github.com/Ylandolsi/ToDoListApi
GitHub
GitHub - Ylandolsi/ToDoListApi
Contribute to Ylandolsi/ToDoListApi development by creating an account on GitHub.
24 Replies
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
FusedQyou
FusedQyou2w ago
To add to this, ILogger<T> is always injected by default in Hosting models as far as I am aware and projects generally configure themselves to use it as their output with logging. The nice thing about Serilog is that if you use it as the library for logging, you can very easily configure it to output anything passed from ILogger<T>/ILogger to a file, console or something else. Serilog is basically the most popular solution to use as the main logger so you should definitely use it and learn to use ILogger with it
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
Thanks a lot! I really appreciate it. For the repository, should I remove everything and handle all operations directly in the Controller?
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
i just followed some steps on a book
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
i thought its new bcz it s still on sell and using the new version of .net
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
i skipped some i should not follow any book for the future ?
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
sure i will thanks a lot
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
do i have to learn how to deploy for now ? or just stick to github ?
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
one last question , should i learn how to do unit testing at this stage or its too early
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Yasin
YasinOP2w ago
okay got it thank you very much !
Reversal
Reversal2w ago
Hmm, why? Repo is a nice way to have a data layer
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Reversal
Reversal2w ago
Yea, I can agree that you should learn the tool first. But speaking for my self having a repository layer is to abstract the data gathering where you create your LINQ queries. You can have a service where you put your business logic and call your repo inside there. Personally I think it makes things more cleaner
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?