A small API that sends anime/hentai images in JSON.
discord | |
---|---|
Follow me on Twitter. | Join my Discord server for help. |
- More endpoints
- Improved randomness
- Better response times
Why do I get an error?
- the most likely issue is that you are using the default user-agent
Can I help?
- Yes of course just make a PR.
Will it work on my PC?
- I don't recommend using my stuff but only for testing purposes (maybe).
What is the difference between version 1 and version 2?
- The backend of both of the versions are completely different and optimized for different types of workload due to this v1 will be depreciated and not accessible anymore in the future when v2 is fully released.
What are you using redis for?
- it is just a simple caching step between the API requests and the images it just makes loading the images a bit more optimized and faster due to this if you decide to run it on your own machine Redis is highly recommended to be used.
Why are you rebuilding your API
- PHP is slow and I want better speed
- PHP setup is a pain in the ass
- I want to learn some new stuff
- Backend in Rust
- Frontend in Python With C
- Database will be switched to MongoDB
- Dashboards
- Login Page
- Authentication Methods
- User Tokens and UUIDs
- a lot of minor stuff
Yes it will be in the future fully open sourceIt now is
- Make the whole backend
-
- connect to the database
-
- edit the data in the database
-
- store generated tokens by user
-
- propper logging of traffic and data
- Make the frontend
-
- make frontend for user pages and login
-
- make the frontpage
-
- uploaders
-
- make the dashboard
-
- remake the login page
- remake the loggers
- add tagging
- 2FA / Different login methods
- Redis Caching / Any caching method
- Rust
- Python 3
- MongoDB
- Redis
- Web Server
Download & install Python and Rust for this project then run these 2 commands
cd FrontEnd && Python3 index.py
.
cd BackEnd/neat-api && cargo run
Change stuff in the .env
to make it be able to connect to the database and set the right logging level.
also add a private.rs
file to the backend for the tokenization, no example provided make your own
Change the correct variables in your own .env
file then run cargo run
it will autopopulate the database
- Will explain this at a later point, will also add some stuff to the dashboard to simplify the process