-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-notes.txt
78 lines (52 loc) · 1.77 KB
/
dev-notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
o---------- URL --------------o
https://oasa.herokuapp.com/
o-----------------------------o
Github integration:
https://devcenter.heroku.com/articles/github-integration#manual-deploys
Heroku nodejs:
https://devcenter.heroku.com/articles/getting-started-with-nodejs?singlepage=true
Heroku postgresql:
https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-node-js
Deploy form CL:
https://devcenter.heroku.com/articles/git
Postman requests:
https://www.taniarascia.com/making-api-requests-postman-curl/
Project baseline:
https://www.taniarascia.com/node-express-postgresql-heroku/
Log in / #:
https://medium.com/@timtamimi/getting-started-with-authentication-in-node-js-with-passport-and-postgresql-2219664b568c
Session:
http://expressjs-book.com/index.html%3Fp=128.html
o----------o
:POSTGRESQL:
o----------o
Installation & Setup:
https://r00t4bl3.com/post/how-to-install-postgresql-12-on-linux-mint-19-tara-19-1-tessa-19-2-tina-19-3-tricia
COMMANDS
========
Log into the Heroku PostgreSQL instance:
heroku pg:psql postgresql-solid-93707 --app oasa
create your table and entries on Heroku Postgres:
cat migrations/init.sql | heroku pg:psql postgresql-solid-93707 --app oasa
Test and deploy:
heroku local web
Log in to root user:
sudo -u postgres psql
Log in to postgres superuser (klaut):
psql postgres
Log in to oasa_user:
psql -d postgres -U oasa_user
Connect to database:
\c database
List users:
\du
https://www.postgresqltutorial.com/postgresql-list-users/
List databases:
\l
https://www.postgresqltutorial.com/postgresql-show-databases/
Show tables:
\dt
https://www.postgresqltutorial.com/postgresql-show-tables/
Show table data:
TABLE tablename;
https://stackoverflow.com/questions/26040493/how-to-show-data-in-a-table-by-using-psql-command-line-interface