There are two purposes planned for this API:
-
Analytics. Because of the content of KawAnime, I would not like to send analytics to famous analytics softwares. But I'd still love to know how many users I'm impacting. The sole purpose of the analytics API is then only to know the number of users KawAnime gathered, or at least a good enough approximation.
-
Updates. Not implemented yet. The plan would be that the app could check for important updates on this API and display them into the app.
This API relies on Redis and will try to connect to it immediatly when started so you need to have Redis installed and a redis server launched in the background.
Download and install redis from the official website
Simply open a terminal and type:
redis-server
Dev mode is handled with nodemon
so the changes will make the server restart. To start dev mode,
simply type
npm run dev
Tests are handled with Jest
. Simply run
npm test
This API is built with Babel and ES6 features so you'll need to transpile the code to node code first.
npm run build
Then you can simply start the app in production mode.
npm start
Any contribution is appreciated.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
MIT License
Copyright (c) Kylart