modulepackage
0.0.0-20210601103238-43bd55b6dff0
Repository: https://github.com/aliabdullahcp/rest_api.git
Documentation: pkg.go.dev
# README
Golang_REST_API
Using Golang, Docker, Postgres
How to RUN
- Install Docker Desktop and make it up and running
- Open Terminal in Project's Root Directory (i.e where docker-compose.yml file is located)
- Run the following Command to Start the project. Wait for it to get up and running
docker-compose up --build
- To Stop the Application you can run the following command.
docker-compose down --remove-orphans --volumes
How to Use Database Using PGAdmin
- While the project is running, Go to browser and open
http://localhost:5050
- Use the following credentials
email: [email protected] passowrd: password
- Right Click on the "Servers" to create a new server. Choose "Create" then "Server"
- Fill in any name that you want.
- Click on connection tab
Here you will need the IPAddress of the PGAdmin container.
Use the following Command to get
Copy the ID of the full_db_postgres containerdocker container ls
docker inspect <container_id> | grep IPAddress
- Once got the IP Address, Fill in the connection tab with Hostname/Address and Username as "postgres" and Password as "password"
- Click Save.
# Packages
No description provided by the author