site
infiniteteam / aztra-web Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
대시보드 페이지가 프론트엔드에서 렌더링될 때 서버 이름과 아이콘을 표시하기 위해 디스코드 api에 서버 정보를 가져옵니다. 그와 동시에 환영 메시지 컴포넌트에서도 백엔드를 통해 간접적으로 디스코드 api에 같은 유저로 똑같이 서버 정보를 가져오므로, API 요청이 거의 동시에 일어나므로 레이트리밋이 발생해 백엔드 요청에 실패합니다.
백엔드: 백엔드에 프론트가 디스코드 Oauth2 토큰을 헤더에 담아 요청을 쏘면, 신원 확인 및 권한 확인을 위해 백엔드에서 헤더로 받은 토큰으로 디스코드 api에 서버 정보를 불러옴. (불러온 서버 정보에는 서버 아이디와 그 서버에서의 사용자 권한 정보가 담겨있으므로 요청하는 사람이 본인인지를 확인함.) 그 후 데이터베이스에서 환영 메시지 설정 데이터를 받아와 프론트에 전달.
현재 프론트와 백엔드 두곳에서 동시에 디스코드 api 요청하는게 문제이므로 둘 중 하나만 남길 필요가 있음.
데이터 조건 (필수 입력, 길이 제한) 검사가 저장 시도시 이루어져야 함
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.