Live Project: https://tiktok-clone-mern-b8cd7.web.app/
## Quick Start
# Clone the application
$ git clone https://github.com/kirankumargonti/tiktok-clone.git
# Install dependencies
$ npm install
# Serve on localhost:5000
$ npm run dev
-
Add your own MongoURI key to your application
- Navigate to
tiktok-backend
directory and add your own cluster MongoURI key totiktok-backend/config/default.json
- Example MongoURI key 👇
mongodb+srv://<username>":<password>@clustername.mongodb.net/test?retryWrites=true&w=majority
- Navigate to
-
Deploying to Heroku
-
Copy the hosting url and Naviagte to to frontend
- Naviagte to
axios.js file
which is located intiktok
directory src/Components/axios.js
- update baseURL with your heroku application url
# Install dependencies
$ npm install
# Serve on localhost:3000
$ npm start
# Build for production
$ npm run build
- Frontend deployment at firebase
# Install firebase tools
$ npm install -g firebase-tools
# Login to firebase
$ firebase login
# Initialize your firebase project
$ firebase init
# Important Steps
- Use an existing project
- What do you want to use as your public directory?
build
- Configure as a single-page app
(rewrite all urls to /index.html)? Yes
- File build/index.html already exists. Overwrite? No
# Deploy to firebase
$ firebase deploy