An open API service indexing awesome lists of open source software.

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.

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:

![image](https://github.com/user-attachments/assets/9399692d-17c1-4425-a553-ba590868924c)

### 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)
![image](https://github.com/user-attachments/assets/e40a5305-54c6-43c8-b4f3-1f695489dabf)

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

![image](https://github.com/user-attachments/assets/d191cece-f51d-466b-85f3-6ef3f3c3e7c8)

Put a name from server:

![image](https://github.com/user-attachments/assets/c0180dc5-d907-4538-a127-f2a15285ca5e)

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

![image](https://github.com/user-attachments/assets/ab421b83-0f4f-4e07-89a4-84c1eaca46dd)

save the connection and enjoy! 😃

# Generate queries

```
go generate ./...
```

# Run server

```
go run cmd/wsrs/main.go
```