Follow the React Getting Started Guide for detailed instructions on setting up your local machine for development.
- Clone repository and install dependencies
git clone Project
- Run Application
npm install
npm run dev
- server
- mongoDB 사용
- jsonwebtoken 라이브러리 사용 token 생성 및 쿠기 저장 기능 추가
- bcrypt 라이브러리 사용 password 암호화
- hello word!!
http : // localhost : 5000 / - 가입 관련
http://localhost:5000/api/users/register
json 형식
{ "name":"test", "email":"test@gamil.com", "password":"test" } - 로그인
http://localhost:5000/api/users/login
json 형식
{ "email":"test@gmail.com", "password":"test" } - 로그아웃
http://localhost:5000/api/users/logout
- Client
- randing Page : 로그인후 들어갈 수 있는 화면 (로그아웃 가능)
- Login Page : 로그인할 수 있는 화면
- Register Page : 회원 가입할 수 있는 화면
- redux 기능 사용
- Auth 기능 사용
- randing Page
http://localhost:3000/ - login Page
http://loginhost:3000/login/ - register Page
http://loginhost:3000/register