Name Last Update
assets Loading commit data...
controllers Loading commit data...
models Loading commit data...
routers Loading commit data...
static Loading commit data...
views Loading commit data...
.babelrc Loading commit data...
.eslintrc.js Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
app.js Loading commit data...
db.js Loading commit data...
init.js Loading commit data...
middlewares.js Loading commit data...
package.json Loading commit data...
passport.js Loading commit data...
routes.js Loading commit data...
webpack.config.js Loading commit data...

KhuTube using AWS, Node js

경희대학교 컴퓨터공학과 강연욱

License: MIT

📺 KhuTube

위 주소는 실제 EC2 서버에 배포한 주소입니다. (불필요한 업로드는 삼가 주시기 바랍니다.)

This is the address that deployed to the actual EC2 server. (Please refrain from uploading unnecessary files.)

KhuTube

Node.js를 사용하여 나만의 Youtube 만들어보기
Create your own Youtube site using Node.js.

Configuration

  1. Frontend: Vanilla.js(Pug Template)
  2. Backend : Node.js
  3. Database: mongoDB Atlas
  4. A W S : EC2(Ubuntu), S3

Quickstart

Prerequisite

  • node v12.x
  • npm 6.x

Required File

위 저장소를 클론한 후 /myYoutube 위치에 .env 파일을 추가해주세요. 내용은 다음과 같습니다.
If you cloned this repo, please add the .env file in /myYoutube
The .env file is ..

MONGO_URL = "mongodb://localhost:27017/yourDBname"
PORT = "Your port number"
COOKIE_SECRET = "anything"
GH_ID = "Your github developer Access ID"
GH_SECRET = "Your github developer Secret Key"
FB_ID = "Your facebook developer Access ID"
FB_SECRET = "Your facebook developer Secret Key"
AWS_KEY = "Your AWS IAM Access ID"
AWS_PRIVATEE_KEY = "Your AWS IAM Secret Key"

Install

npm install

Run program

Backend를 수정하고 서버를 실행하여 확인하고 싶다면 터미널에 다음과 같이 입력해주세요.
If you modify your backend project and want to run the server for checking..

npm run dev:server

Frontend를 수정하고 서버상에서 어떻게 실행되는지 확인하고 싶다면 터미널에 다음과 같이 입력해주세요.
If you modify your frontend project and want to check the change on server..

npm run dev:assets

가급적이면 터미널을 분할하여 두 내용을 다 실행시킨 후에 작업하시는 것도 좋습니다.
I just recommend run both at the same time.

Reference links

Passport JS
Mozilla Developer Network
Github Developer
Facebook Developer
Webpack-cli
Multer-S3
Mongoose
Axios
AWS SDK

Pages:

  • Home
  • Join
  • Login
  • Search
  • User Detail
  • Edit Profile
  • Change Password
  • Upload
  • Video Detail
  • Edit Video

License

MIT License

Contact

이용하시다가 궁금한 점이 있으시면 이쪽으로 연락 부탁드립니다.
강연욱 - rokkyw@khu.ac.kr