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•2w ago
Message Not Public
Sign In & Join Server To View
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•2w ago
Message Not Public
Sign In & Join Server To View
Thanks a lot! I really appreciate it. For the repository, should I remove everything and handle all operations directly in the Controller?
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
i just followed some steps on a book
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
i thought its new bcz it s still on sell and using the new version of .net
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
i skipped some
i should not follow any book for the future ?
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
sure i will
thanks a lot
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
do i have to learn how to deploy for now ?
or just stick to github ?
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
one last question , should i learn how to do unit testing at this stage or its too early
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
okay got it thank you very much !
Hmm, why? Repo is a nice way to have a data layer
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
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•2w ago
Message Not Public
Sign In & Join Server To View