Skip to content

Commit 6dd1369

Browse files
committed
Update README.md
1 parent c37a9b4 commit 6dd1369

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.openshiftio/service.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ items:
1313
spec:
1414
tags:
1515
- annotations:
16-
openshift.io/imported-from: centos/postgresql-96-centos7/
16+
openshift.io/imported-from: centos/postgresql-96-centos7
1717
from:
1818
kind: DockerImage
19-
name: centos/postgresql-96-centos7/
19+
name: centos/postgresql-96-centos7
2020
generation: null
2121
importPolicy: {}
2222
name: latest
@@ -53,7 +53,7 @@ items:
5353
- env:
5454
- name: POSTGRESQL_ADMIN_PASSWORD
5555
value: mysecretpassword
56-
image: postgresql/postgresql:9.6
56+
image: centos/postgresql-96-centos7
5757
name: my-database
5858
ports:
5959
- containerPort: 5432

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)