This is a Crud app
- run the docker compose up -d to initialoz the emtpy docker container
- to be inside the container run `docker exec -it psql -U -d "docker exec -it goCrud psql -U medhashis -d postgresGoCrud" for my case
- The above command gives a interactive terminal with which you can access your container.
- It will provide an interface like the =# now write the command;
- "\l" list is the previlages and everyting and '\dt' gives the information about the tables
- Initialize the go; here I am using the "Gorilla" and the "pq" "(this driver is specific for the postges)" driver different database requires different driver.
- The basic steps for the creating the backend is the same : - " Find a way to connect to the db ", " create the schemas to automatically generate the tables", " make the api end points that is the routers " , " write the logic for the backend"