Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yunyoungsik/netflix-clone

React와 tainlwind를 활용하여 제작한 웹 사이트입니다.
https://github.com/yunyoungsik/netflix-clone

Last synced: 6 days ago
JSON representation

React와 tainlwind를 활용하여 제작한 웹 사이트입니다.

Awesome Lists containing this project

README

        

# Netflix Clone

[참고영상](https://youtu.be/gRroBZczKAU?si=pHYTPM9TzZg_3B2d)

## backend

```
npm init -y
npm i express jsonwebtoken mongoose cookie-parser dotenv axios bcryptjs
npm install cross-env
```

```
"scripts": {
"dev": "node --watch backend/server.js"
},

적용이 안될 경우 아래 라이브러리 설치 후 "scripts" 수정

npm i nodemon -D
"scripts": {
"dev": "nodemon backend/server.js"
},
```

배포 단계에서 package.json 변경사항
```
"scripts": {
"dev": "NODE_ENV=development nodemon backend/server.js",
"start": "NODE_ENV=production node backend/server.js",
"build": "npm install && npm install --prefix frontend && npm run build --prefix frontend"
},

*window환경에서는 cross-env를 설치 후 아래와 같이 변경
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon backend/server.js",
"start": "cross-env NODE_ENV=production node backend/server.js",
"build": "npm install && npm install --prefix frontend && npm run build --prefix frontend"
},
```

## frontend
```
npm create vite@latest .
npm i axios lucide-react react-player react-hot-toast react-router-dom zustand
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
npm i tailwind-scrollbar-hide
```