File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ items:
13
13
spec :
14
14
tags :
15
15
- annotations :
16
- openshift.io/imported-from : centos/postgresql-96-centos7/
16
+ openshift.io/imported-from : centos/postgresql-96-centos7
17
17
from :
18
18
kind : DockerImage
19
- name : centos/postgresql-96-centos7/
19
+ name : centos/postgresql-96-centos7
20
20
generation : null
21
21
importPolicy : {}
22
22
name : latest
53
53
- env :
54
54
- name : POSTGRESQL_ADMIN_PASSWORD
55
55
value : mysecretpassword
56
- image : postgresql /postgresql:9.6
56
+ image : centos /postgresql-96-centos7
57
57
name : my-database
58
58
ports :
59
59
- containerPort : 5432
Original file line number Diff line number Diff line change
1
+ Golang CRUD Booster
2
+
3
+ #### Running Locally
4
+
5
+ First, install the dependencies
6
+ ` go get `
7
+
8
+ The web app requires Postgres DB. If you have docker installed, you can run the
9
+ following command to start a new Postgres container
10
+
11
+ ` docker run -e POSTGRESQL_ADMIN_PASSWORD=mysecretpassword -d -p 5432:5432 centos/postgresql-96-centos7 `
12
+
13
+ In this example, the database user is ` postgres ` , the password is ` mysecretpassword ` and the database is ` postgres `
14
+
15
+ You can then start the application like this:
16
+
17
+ ` go build && ./golang-http-crud `
18
+
19
+ Then go to http://localhost:8080
You can’t perform that action at this time.
0 commit comments