proxitok/README.md

51 lines
1.4 KiB
Markdown
Raw Normal View History

2022-01-01 19:14:57 +00:00
# TikTok alternative Frontend
2022-01-01 23:06:00 +00:00
Use Tiktok using an alternative frontend, inspired by Nitter.
2022-01-01 19:14:57 +00:00
## Installation
Clone the repository and fetch the requiered external packages with:
```bash
composer install
```
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.
### Apache
If you are using Apache you don't have to do anything more
### 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 19:14:57 +00:00
## Known issues
2022-01-01 19:48:42 +00:00
* Right now there is an error when trying to fetch the desired user, there is already a pull request not merged yet fixing this issue on the TikTokApi repo, you can check it out [here](https://github.com/ssovit/TikTok-API-PHP/pull/43)
2022-01-01 19:14:57 +00:00
2022-01-01 23:06:00 +00:00
## TODO
* Allow searching for just one video using the ID
2022-01-03 13:32:35 +00:00
* Code cleanup
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-03 12:43:22 +00:00
* [steampixel/simple-php-router](https://github.com/steampixel/simple-php-router)
* [PHP dotenv](https://github.com/vlucas/phpdotenv)
2022-01-01 19:14:57 +00:00
* [Bulma](https://github.com/jgthms/bulma)