README ¶ Na Boca do povo - Backend Anotações de estudo sobre o backend do projetoThe main. go file just have the main function and the routes The api folder is responsible for the routes and the request/response The controller folder is responsible for controlling the flow of requests and responses The service folder is responsible for the business logic The repository folder is responsible for the database operations The model folder is responsible for the database models the dto folder is responsible for the data transfer objects, current there is one for the response The database folder is responsible for storing database script (.sql) How to run Install Go Install Docker with Docker Compose Execute the following commands after cloning the repository: # Start the database docker-compose up -d # Run the application go run main.go To stop the database, run: docker-compose down Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis api controller dto model repository service Click to show internal directories. Click to hide internal directories.