youtubeclone-backend

Youtube Clone Backend (Express + Sequelize)

  • 所有者: manikandanraji/youtubeclone-backend
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Youtube Clone Backend

Youtube clone using PERN stack (Postgres, Express, React, Node).

This is the backend repository, built with Express + Sequelize. If you are looking for the frontend repository, click here

Check out the deployed site

Core packages

  1. sequelize - ORM for sql dialects
  2. jsonwebtoken - authentication
  3. bcryptjs - password hashing

Features

  1. Login/Signup
  2. Upload video
  3. Search video by channel name
  4. Search video by title, description
  5. Like/Dislike video
  6. Subscribe/Unsubscribe from channels
  7. Add comment
  8. Edit profile (avatar, cover)
  9. Liked videos
  10. History

Running locally

At the root of your project create an .env file with the following contents:

JWT_SECRET=<YOUR_SECRET>
JWT_EXPIRE=30d // or any reasonable value that you prefer
DATABASE_URL=<YOUR_DB_CONNECTION_URI>

Then run npm i and npm run dev to start the development server

Deploying to Heroku

Create your heroku account and install the heroku cli tool globally and login

npm i -g heroku
heroku login

Go to the root of this project, create an new heroku app and push it to the remote 'heroku'

heroku create
git push heroku master

Once the build finished successfully, you need to go to your heroku dashboard for this app and add the .env manually. If it
sounds confusing, refer this guide

Heroku postgres addon

You can also use the heroku postgres addon and use that database for this clone

heroku addons:create heroku-postgresql:hobby-dev

Now you can use the DATABASE_URL connection string from heroku postgres and use that in your .env. To get your connection string use:

heroku config # if everything worked you will a connection string

Watch the Demo

Video

UI

Home

Home

Trending

Watch

Watch

Suggestions

Suggestions

Channel

Trending

Edit Profile

Edit Profile

Trending

Library

Library

Search

My Clone Trilogy

With this clone, I am finishing what I call 'my clone trilogy'. If you are interested, you can visit my other clones that are part of this trilogy

  1. Twitter

  2. Instagram

主要指标

概览
名称与所有者manikandanraji/youtubeclone-backend
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2020-07-06 08:59:29
推送于2022-06-10 14:31:50
最后一次提交2022-06-10 20:01:37
发布数0
用户参与
星数689
关注者数23
派生数156
提交数21
已启用问题?
问题数11
打开的问题数8
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?