Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OTSWithFeign
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bhaskar Katakam
OTSWithFeign
Commits
e82c5c8e
Commit
e82c5c8e
authored
Apr 13, 2020
by
Kali Padhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme.md
parent
8d6695ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
readme.md
readme.md
+17
-22
No files found.
readme.md
View file @
e82c5c8e
# Offer Transaction Service
## Steps to install and run the application
Download and Install Postgress In Docker ::
```
bash
docker pull postgres
docker run
-d
-e
POSTGRES_USER
=
user
-e
POSTGRES_PASSWORD
=
password123
--name
postgres
-p
5432:5432
--restart
=
always postgres
```
Download and install pgadmin
```
bash
https://www.postgresql.org/ftp/pgadmin/pgadmin4/v4.19/windows/
after installation start the pg admin by use below url
http://127.0.0.1:58283/browser/#
```
Once you start it will ask to create a master password
Go to Add New Server --> Give any database name --> go to connection tab and provide below details
```
bash
Host
=
127.0.0.1
Port
=
5432
username
=
user
password
=
password123
```
Then click on save
In Header click on Tool -> Query Tool --> and paste the below query
===================================================
```
bash
--
Table: public.offerlookup
--
DROP TABLE public.offerlookup
;
...
...
@@ -47,18 +55,18 @@ TABLESPACE pg_default;
ALTER TABLE public.offerlookup
OWNER to
"postgress"
;
====================================================
```
```
bash
Once you create use the below query to insert a data
INSERT INTO public.offerlookup
(
offer_lookup_id, store_id, terminal, offer_type, offer_id, pre_condition
)
VALUES
(
'1234567890'
,
'0001'
,
'002'
,
'UPC'
,
'01'
,
'AND'
)
;
```
```
bash
Create a table
for
end of sale
==============================
CREATE EXTENSION IF NOT EXISTS
"uuid-ossp"
;
...
...
@@ -69,7 +77,9 @@ CREATE TABLE endofsale(
isprocessed boolean
)
;
```
```
bash
dummy data
==========
...
...
@@ -77,22 +87,7 @@ dummy data
INSERT INTO endofsale VALUES
(
uuid_generate_v4
()
,
'{"name": "Paint house", "tags": ["Improvements", "Office"], "finished": true}'
,
'{"name": "Paint house", "tags": ["Improvements", "Office"], "finished": true}'
)
;
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment