Giter Site home page Giter Site logo

teamply_node's Introduction

Teamply_Node.js Team


Versions & dependencies

"body-parser": "^1.20.1",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.0",
"morgan": "^1.10.0",
"mysql": "^2.18.1",
"mysql2": "^3.0.1",
"nodemailer": "^6.9.1",
"redis": "^4.5.1",
"request-ip": "^3.3.0"

login

  • use JWT

  • accessToken & refreshToken

what is JWT?

Json Web Token : header - payload - signature

  • Header : JWT를 검증하는데 필요한 정보를 가진 JSON을 Base64 알고리즘 기반으로 인코딩한 문자열
    • typ : 토큰의 타입 ex) JWT
    • alg : 알고리즘 방식을 지정 ex) HS256
  • Payload : JWT에 저장된 값. (name, value)의 쌍으로 이루어져 있다.
    • 등록된 Claim
    • 공개 Claim
    • 비공개 Claim
  • Signature : JWT를 인코딩하거나 유효성 검증을 할 때 사용하는 암호화 된 코드

Redis cloud

REDIS_HOST REDIS_PORT REDIS_USERNAME REDIS_PASSWORD

설정 완료

env 파일 사용

process.env로 사용자 정보숨기기 완료

db 설계 완료

API

1. User
  • signup : 회원가입 - update : email로 activate
  • login : jwt 토큰 생성
  • refresh : jwt 토큰 재발행
  • resign : 회원탈퇴 - email resign code 필요
  • Read Profile : 프로필 읽기
  • Read Account : 회원정보 읽기
  • update Profile : 프로필 업데이트
  • update Account : 회원정보 업데이트
  • update password : 비밀번호 최신화 - email code 필요
  • add friend : 친구 초대
  • get photo : 사진 출력
2. Project
  • create : 프로젝트 생성
  • update project : 프로젝트 내용 변경
  • delete project : 프로젝트 제거
  • create project invite code : 프로젝트 초대 코드 생성
  • get project invite code : 프로젝트 초대 코드 받기
  • invite project : 프로젝트 초대
2.1 ProjectMember
  • my : 내가 속한 프로젝트 가져오기

  • get projectmember : 프로젝트에 속한 인원들 정보 가져오기

  • 변경내용이 각각 다르다

3. Schedule
  • create : 일정 추가

  • read : 일정 내용 가져오기

  • update : 일정 내용 변경

  • delete : 일정 제거

  • 일정은 변경내용이 공통

4. Alarm
  • get my alarm : 나에게 해당되는 알람 가져오기
5. Timetable
  • get timetable : 시간표 가져오기
  • update timetable : 시간표 업데이트하기
6. email
  • 외부에 공개하지 않음

teamply_node's People

Contributors

kwanghyunkk avatar skdud3560 avatar nayoung657145 avatar

Watchers

 avatar

teamply_node's Issues

db 설계

  • db 설계
  • db mysql 구현
  • 더미데이터 생성

api 설계

  • schedule crud
  • Team crud
  • 회원 초대 코드 보내는 방식

회원가입 / 로그인

  • 회원가입 / 로그인 코드 구현
  • 코드와 db 연결
  • 가입 시 이메일 전송 후 verify 설정

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.