-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST API #1
Comments
+1 a rest API for revo would be very usefull |
There are three API endpoints that are already implemented:
Unfortunately, the project is no longer available online. However you can relatively easily deploy it yourself (I can give you guidance if you want to setup an instance and don't know where to start). If you really need, I can also deploy it myself. |
Hey, thanks for the response. I would love to test it at least locally. If you give me a few hints I can add a how to to the readme. I never deployed a ruby server, how do I start? Is this a working website or work in progress? |
Okay I found out how to run a rust project myself. (cargo build & cargo run) I get an error in index.rs on line 13
Do I have to download the articles first? Where exactly should this directory be? |
You can download articles from the original revo using the crawler. git clone https://github.com/nova-reta-vortaro/nrv-crawler
cd nrv-crawler
yarn
mkdir articles
node . libro # if you want to import "libro" and related words, for instance
# once you imported all your articles, copy them where NRV expects them
cp -r articles ../nrv # you can probably make a symlink too
cd ../nrv
cargo run # it should work :) The project is not actively maintained anymore (but because you seemed to be interested and because rocket 0.5 was recently released, I decided to update the dependencies and the code a bit yesterday). In the current state, it has all basic functionality you can expect, but I don't think it can be used in a real setting. This project was a way for me to learn Rust a few years ago, and I never really expected it to be a working alternative to the ReVo. However, if you want to improve it and get it to a state where it is working I can give you pointers on what needs to be done. |
Thanks, I will try it later today.
Sure go ahead! I would love to update the design of the revo in one way or another and this looks like a good starting point. At least I can update the readme.md file to make it easier for future contributors. |
Okay, so I can see a few big points that need to be improved (in no particular order):
If you are not familiar with Rust, all of this may be a bit hard (and even if you know Rust it is a lot of work), and just getting in touch with the ReVo maintainers to know if they would accept cosmetic improvements on the official website would be a better idea. If all of that is too much and you just want to update the README so that it is easier for others to contribute, your help would still be welcome! |
No description provided.
The text was updated successfully, but these errors were encountered: