Server Configuration
We provided the configuration file and now you can config your server.
Never config the API URL, it might break the API for some routes.
Rate-Limit Configuration
If you want to protect your server from overloaded, you could configure the rate-limit for your server.
Our Default Rate-Limit is 180 request per minute 180 per minute, To change the Rate-Limit, you can use the following configuration.
[serv_config]req = 100 per minutesearch_req = 200 per minute
I have separated req and search_req because the search_req have to request more search for the user than the req. If you want to change the default config for your server, you can use the following configuration.
[serv_config]req = (number) per (time)search_req = (number) per (time)
By using Flask-Limiter API, you can configure the rate-limit with this type of time:
- second
- minute
- hour
- day
- month
- year
OPTIONAL : You can add (s) to those if you want to make it plural
Hosting Configuration
Locally
If you want to host our own api and didnt want to spend money on server, this is for you. No Config Needed for Local Hosting.
Required Python 3.9+
Clone this repo
git clone github.com/NYT92/hanime-python-api.git
Install all of the dependencies
pip install -r requirements.txt
Run The main.py
python or python3 index.py
To Server
Procfile Supported
We have added Procfile and you can now deploy to any server like Heroku, Railway, etc. You can clone it and config the Procfile. Do you want to deploy HaniAPI to these server now?
Deploy Via Railway
Deploy Via Vercel
Deploy Via Deta.sh
Other Server
For AWS, GCP and AZURE, you might want to watch other tutorial and website documentation for more information.
Dockerfile Supported
I'm not familiar with docker yet...