테스트 사이트 - 개발 중인 베타 버전입니다

포스트맨 테스트 동영상

· 4년 전 · 1097 · 7

서버쪽을 node를 통해서 만들어 보고 있습니다.

 

postman에서 토큰을 통해서 두명의 유저가 각각의  글을 쓰는 것까지가 데모입니다.

 

마이크산 기념으로 목소리도 넣어 봤습니다.  ㅠㅠ

 

https://youtu.be/4mGHI1yc1b4

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 7개

유튜브에서 추천한방 했네여! : )
@xpem 감사합니다
localhost 말고 실제 도메인과 연결해서 한번 보여주실 수 있으실까요?
http://api.mydomain.com:4000 이런 식일까요? 포트번호 없이 https://api.mydomain.com/user/username 이런 식일까요... 네트워크 보안통신을 위해서는 ssl을 적용해야할 것 같은데... ㅜㅜ; 어흑...
@xpem 오라클 클라우드 셋업해야 되는데, 귀찮아서 못하고 있습니다.

도메인 셋업은 어떤식으로 해도 됩니다. 즉 둘다 가능합니다.
letsencrypt에서 인증서 만들고 우분투에서 돌고 있던 nginx(https도 함께 운영중이었음) 내리고, node 실행하니 제대로 동작하네요 : )
https://api.lovingword.net 으로... ㅎㅎ (아직 라우팅 기능 등 하나도 없지만... ^^;)

========================
const express = require('express');
const fs = require('fs');
const path = require('path');
const https = require('https');
const PORT = process.env.PORT || 443;
const app = express();

const options = {
key: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/cert.pem'),
ca: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/fullchain.pem')
};
https.createServer(options, app).listen(PORT);
app.js 시작은 pm2 로...

https://minder97.tistory.com/entry/Linux-background-%EB%A1%9C-process-run
제 개인 실험서버는 닫도록 하겠습니다. 나중에 공개할만하면 다시 나눌께요

게시글 목록

번호 제목
161
160
150
149
141
139
138
132
127
123
117
116
114
111
109
103
101
99
93
90
84
79
66
48
47
43
37
36
34
33