Offtiktok allows users to share tiktoks with anyone, regardless of whether they have the app or not, by adding "off" before "tiktok" in the url (e.g: https://vm.offtiktok.com/ZGe7XpCwV/ )
It also includes a minimalistic TikTok feed that allows watching videos recommended by the platform, no ads, no app, no geo-restrictions.
This backend is built in node.js and can be quite simply deployed:
Create a .env
file and copy the contets of the .env.template
file included in the repository.
Give your prisma DB a name
./docker-up.sh
chmod +x ./docker-up.sh
then run the script again.Using Homebrew:
Install Homebrew if you haven't already:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Node.js and npm:
brew install node
brew install node
Using Node Version Manager (nvm):
Install nvm
:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Load nvm
:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s
"${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Install Node.js:
nvm install node
Using NodeSource Binaries:
Install Node.js and npm:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
Using Node Version Manager (nvm):
Install nvm
:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Load nvm
:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s
"${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Install Node.js:
nvm install node
Using Node.js Installer:
Using Node Version Manager for Windows (nvm-windows):
nvm-windows
from the nvm-windows releases.nvm install latest
nvm use latest
After installation, verify that Node.js and npm are installed correctly by running:
node -v
npm -v
To instal project dependencies, run: npm install
Create a .env
file and copy the contets of the .env.template
file included in the repository.
Give your prisma DB a name
Before your initial development run, you need to apply the prisma migrations, run: npx prisma migrate dev
Run npm run dev
to get your development server running in port 2000
The repository also includes a npm run build
and npm run start
scripts.
These are intended for production servers,
npm run build
will compile your typescript and apply any missing prisma migrations.
npm run start
will start up the compiled index.ts
on your server
Need features like service permanence and startup scripts? Check out pm2
Collaboration is welcome! Please feel free to support the project by opening an issue or pull request
This project is licensed under the MIT License