Go API for managing documents with a React frontend.
git clone https://github.com/Josehpequeno/document-manager.git
cd document-manager
cd docker && docker-compose up -d
If the containers are stopped, run the following command:
docker-compose start
Postgres will run on port 5432, pgAdmin on port 8080, and the application on port 3450, according to the credentials in the docker-compose.yml file.
cd backend
chmod +x .initENV.sh && source .initENV.sh
go install github.com/swaggo/swag/cmd/swag@latest
swag init --parseDependency --parseInternal
A documentação Swagger pode ser acessada em http://localhost:3450/swagger/index.html.
Test handlers:
cd api/handlers/ && GIN_MODE=release go test
Make sure you have Docker and Docker Compose installed.
The project's Docker image is available in the DockerHub repository.
-
Run with Docker To run the application with Docker, use the following command:
docker run -it --name test-document-manager --network host josehpequeno/document-manager:latest
This will start the application in the Docker container and expose ports 3450, 3000 and 80 to the respective services.
This project is licensed under the MIT License.