proxitok/README.md

65 lines
1.7 KiB
Markdown
Raw Normal View History

2022-01-14 17:18:28 +00:00
# ProxiTok
Use Tiktok with an alternative frontend, inspired by Nitter.
2022-01-01 19:14:57 +00:00
2022-01-06 23:13:51 +00:00
## Features
2022-01-14 17:18:28 +00:00
* Privacy: All requests made to TikTok are server-side, so you will never connect to their servers
2022-01-06 23:13:51 +00:00
* See user's feed
* See trending
* See tags
2022-01-08 15:03:57 +00:00
* See video by id
2022-01-06 23:13:51 +00:00
* Create a following list, which you can later use to see all the feeds from those users
2022-01-01 19:14:57 +00:00
## Installation
Clone the repository and fetch the requiered external packages with:
```bash
composer install
```
2022-01-13 15:51:45 +00:00
WARNING: You'll need a personal Github token for composer.
2022-01-01 19:14:57 +00:00
Then you can run it using for example the PHP Development Server with:
```bash
php -S localhost:8080
```
2022-01-03 13:32:35 +00:00
## Configuration
### .env
Move the .env.example file to .env and modify it.
2022-01-17 20:11:40 +00:00
### Cache engines
2022-01-13 15:51:45 +00:00
Available cache engines:
2022-01-14 18:26:07 +00:00
* redis: Writes response to Redis (check .env.example for config!)
2022-01-13 15:51:45 +00:00
* json: Writes response to JSON file
2022-01-03 13:32:35 +00:00
### Apache
2022-01-06 23:13:51 +00:00
You don't have to do anything more
2022-01-03 13:32:35 +00:00
### Nginx
Add the following to your config (you can modify the tiktok-viewer part if you have or not a subdir):
2022-01-03 13:32:35 +00:00
```
location /tiktok-viewer {
return 302 $scheme://$host/tiktok-viewer/;
2022-01-03 13:32:35 +00:00
}
location /tiktok-viewer/ {
try_files $uri $uri/ /tiktok-viewer/index.php?$query_string;
}
location /tiktok-viewer/.env {
deny all;
return 404;
}
```
2022-01-01 23:06:00 +00:00
## TODO
2022-01-06 23:13:51 +00:00
* Add a NoJS version / Make the whole program without required JS
2022-01-08 15:03:57 +00:00
* Better error handling
* Make video on /video fit screen and don't overflow
2022-01-01 23:06:00 +00:00
2022-01-01 19:14:57 +00:00
## Credits
* [TikTok-API-PHP](https://github.com/ssovit/TikTok-API-PHP)
2022-01-17 20:11:40 +00:00
* [steampixel/simplePHPRouter](https://github.com/steampixel/simplePHPRouter)
2022-01-03 12:43:22 +00:00
* [PHP dotenv](https://github.com/vlucas/phpdotenv)
2022-01-01 19:14:57 +00:00
* [Bulma](https://github.com/jgthms/bulma)
2022-01-06 23:13:51 +00:00
* [Bulmaswatch](https://github.com/jenil/bulmaswatch)