https://github.com/fandredev/go-react-server
An API using Golang, Postgresql and Docker to ask anything a me.
https://github.com/fandredev/go-react-server
docker golang postgresql
Last synced: about 2 months ago
JSON representation
An API using Golang, Postgresql and Docker to ask anything a me.
- Host: GitHub
- URL: https://github.com/fandredev/go-react-server
- Owner: fandredev
- Created: 2024-08-05T17:10:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T19:40:47.000Z (over 1 year ago)
- Last Synced: 2025-02-02T03:45:23.005Z (over 1 year ago)
- Topics: docker, golang, postgresql
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Stack used

## Authors
- [@fandredev](https://www.linkedin.com/in/devfandre/)
- [Rocketseat](https://www.rocketseat.com.br/)
# Run Postgres/pgadmin with Docker
Note: please, check the .env.example file to change variables
```
docker-compose up
```
Note: Run command below to run your containers in detach mode (free terminal to type)
```docker compose up -d ```
# Screenshots:

### Note:
- the pgadmin can slowly initialize. wait for between 30 and 50 seconds to start.
- Open http://localhost:8081/ to navigate to postgres page. Use your login defined in .env (check the .env.example before)

After you logged, click in Servers > Register > Server:

Put a name from server:

click in connection and view the .env.example to be able fill the fields below.:

save the connection and enjoy! 😃
# Generate queries
```
go generate ./...
```
# Run server
```
go run cmd/wsrs/main.go
```