na-boca-do-povo-backend

command module
v0.0.0-...-26ab060 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 5 Imported by: 0

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

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL