In the course of a tech test, I was invited to build a front end system in React that would allow a user to view a list of courses and their details. The user should be able to add a new course to the list and delete a course from the list. The user should also be able to view and edit the details of a course by clicking on the course in the list.
After completing it, I decided to provide a "real" back end to the system, and given that I have been participating in a .NET bootcamp, I decided to use this technology to build the back end. And this is the result.
- React (see the front end repository here)
- .NET 8.0
- Entity Framework Core
- PostgreSQL
- Docker
- Clone this repository
- Run
dotnet watch runin the/Apifolder - Access
https://localhost:5000/health_checkto check if the API is running - Clone the front end repository, install the dependencies and run the front end
bun installbun dev- Access
http://localhost:5173to see the front end
- Enjoy!
- Clone this repository
- Run
docker-compose upin the root folder - Access
https://localhost:5000/health_checkto check if the API is running - I still could not create a docker file as previously described
- Enjoy!
- Create Course entity (belongs to a teacher [User])
- Create entity
- Create service
- Implement actions
- Implement JWT
- Create JWT service
- Implement JWT in the API
- Use JWT to secure the endpoints
- Create Vídeo entity (belongs to a course)
- Create entity
- Create service
- Implement actions