Coder Social home page Coder Social logo

tt-clone-webapp's Introduction

TikTok clone | video sharing web app

Features

  • Authentication πŸ”‘ - (login | logout with google auth provider)
  • Upload Video 🎞
  • Delete (videos | comments) by author πŸ€”πŸ«£
  • Video Detail ✨
  • Different Topic page πŸ‘€βœ¨
  • Search (by topic | by keywords) πŸ‘€πŸ”Ž
  • User Profile πŸ§ΈπŸ‘©πŸΏβ€πŸ’» (editable bio)
  • Follow | Unfollow πŸ‘₯
  • Like | Comment ❀️‍πŸ”₯πŸ’¬
  • Social share πŸŒπŸš€ (native sharing mechanism on mobile device)
  • Theme πŸŒžπŸŒ™ (light | dark)
  • Progressive web app (PWA) πŸš€πŸ”₯
  • Fully Responsive πŸ“±πŸ’»

Tech stack

πŸƒ Run Locally

Clone the project

  [email protected]:zwelhtetyan/tiktok-clone.git

Go to the project directory

  cd tiktok-clone

Remove remote origin

  git remote remove origin

Install dependencies

  yarn

πŸ”‘ Environment Variables

To run this project, you will need to add the following environment variables to your .env.local file

GOOGLE_CLIENT_ID - (your google client id)

GOOGLE_CLIENT_SECRET - (your google client secret)

NEXT_PUBLIC_ROOT_URL - (http://localhost:3000)

NEXTAUTH_URL - (http://localhost:3000)

Create sanity studio

Firstly, follow the instructions from sanity's official documentation here.

After creating sanity account from above instructions, you will get create command to install sanity studio like this npm create sanity@latest -- --template get-started --project PROJECTID --dataset production --provider PROVIDER_NAME

And then, create a new folder under the root folder

  mkdir sanity-backend

Install sanity studio

  cd sanity-backend
  npm create sanity@latest -- --template get-started --project `YOUR_PROJECTID` --dataset production --provider `YOUR_PROVIDERNAME`

And then, replace your schemas folder with mine (from sanity/schemas);

Note: If you have an error Cannot read property of undefined (reading 'config'), simply add tailwind.config.js file in the root of sanity-backend folder with below content.

// tailwind.config.js
module.exports = {
  content: [],
  theme: {
    extend: {},
  },
  plugins: [],
}

Run sanity studio

  yarn dev

And then, you can view sanity studio on http://localhosts:3333

Add env in the root folder (tiktok-clone/.env.local)

Get your TOKEN and PROJECTID from sanity studio

NEXT_PUBLIC_SANITY_TOKEN - (your sanity token)

NEXT_PUBLIC_SANITY_PROJECT_ID - (your sanity projectId)

NEXT_PUBLIC_SANITY_API_VERSION - (2023-11-11)

Note: Please make sure you allow the CORS orgin in you sanity-studio

Run the app

Please make sure you are in the root folder (/tiktok-clone:)

  yarn dev

Finally, you can view the app on http://localhosts:3000


πŸ‘‹ Contributing

Contributions are always welcome!

Author

tt-clone-webapp's People

Contributors

zwelhtetyan avatar dependabot[bot] avatar

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.