It's a tiny RESTful API to index a page's content. "Index the content" means to parse the page content and store it's content - in this case to store the content that is found inside the tags h1, h2 and h3 and the links.
- List the urls and content stored in the database
[GET] /tasks tasks#index
- Receive the URL of the page, grab its content and store its content with the tags h1, h2 and h3 and the links
[POST] /tasks tasks#create_page
- The Ruby 2.2.2+
- Rails (versions 5.0)
- PostgreSQL
$ git clone git@github.com:paulocsb/pageindex-rails-api.git
$ cd pageindex-rails-api
$ bundle install && cd client && npm i && cd ..
$ rake db:create && rake db:migrate
$ rake start
- Paulo Cesar - GitHub