[항해99] 39일차
항해 99
39일차:
99일까지 60일 정도 남앗는데, 8주정도 남았나? 기간으로보면 좀 많이 남은것같은데, 또 보면 다음주 금요일 에 바로 파이널 프로젝트
내일부터는 클론코딩. 그나마 이번에 미니 프로젝트 를해서 그런지 걱정이 좀 덜한것같기도하다. 살짝 팀원 명단 나온거보기는했는데, 다음에도 좋은 팀장님 과 팀원분들을 만난것같아서 다행인것같다.
CORS 설정
const cors = require("cors");
const allowedOrigins = [
'http://프론트 레알 아이피 ',
'http:// front 분의 아이피:3000',
]
app.use(cors({
origin: (origin, callback) => {
if(!origin) return callback(null, true);
if(allowedOrigins.indexOf(origin) === -1) {
const message = "The CORS policy for this site does not allow access from the specified origin";
return callback(new Error(message), false);
}
return callback(null, true);
}
}));
포스트맨
위코드 분들이 한 api document 를 봤는데 뭔가 이렇게써서 github rede me에 올라가있는걸보니 뭔가 있어보였다.
https://documenter.getpostman.com/view/13391325/TVmMhdrD#32640416-bec9-4c8b-beb5-abb8c14766ca
Suwee
# 수위의 서재 API ## API 문서 작성 범위 ### 로그인/회원가입 - 핸드폰번호 사용자 인증 요청 CR : 백승진 - Kakao 계정 signin 요청 : 백승진 - 회원가입 : 백승진 - 일반 로그인 : 백승진 ### 랜딩 페이지 -
documenter.getpostman.com
그래서 나도 이번에 미니프로젝트 한거 포스트맨으로 만들고있다.
Swagger로도 비슷하게 만드는것같은데, 그냥 나는 포스트맨이 좋은것같다.
https://documenter.getpostman.com/view/16410236/TzmBCtXi
team 18 Miniporject API
Voyage 99 Dev- Bootcamp Mini Project Team 18 항해99 미니프로젝트 팀18
documenter.getpostman.com
https://database.guide/what-is-referential-integrity/
What is Referential Integrity? | Database.Guide
Referential integrity refers to the accuracy and consistency of data within a relationship. In relationships, data is linked between two or more tables. This is achieved by having the foreign key (in the associated table) reference a primary key value (in
database.guide
CORS - additoinal resource
https://www.freecodecamp.org/news/access-control-allow-origin-header-explained/
The Access-Control-Allow-Origin Header Explained – With a CORS Example
Often times when calling an API, you may see an error in your console that looks like this: Access to fetch at 'http://somesite.com' from origin 'http://yoursite.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value tha
www.freecodecamp.org
'IT > Bootcamp 항해99' 카테고리의 다른 글
[항해99] 42일차 API설계와 포스트맨 사용법 (0) | 2021.07.18 |
---|---|
[항해99] 40일 & 41일차 클론코딩 (3) | 2021.07.18 |
[항해99] 38일차 회원가입 API (0) | 2021.07.14 |
[항해99] 37일차 백앤드와 프론트 협업 (0) | 2021.07.13 |
[항해99] 36일차 API 짜기 (0) | 2021.07.13 |