cipo7741 / anycook-api

REST Api for anycook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anycook-api

REST Api for anycook

Build Status

Documentation

A detailed API documentation can be found here (still in progress).

Test environment

To use the full test stack you will also need to clone and start the anycook-page project.

Required dependencies

Configuration

TODO Available properties can be found here.

If you want to set your own global conf in the test environment place it in the project as test-environment/api-manifests/anycook.properties

Starting

  • Compile Java sources with $ gradle war
  • Run $ vagrant up --provision in project root directory.
  • The anycook API can be accessed on http://localhost:8080. The MySQL server via port 3333

Adding database data

  • The puppet scripts create two MySQL databases. 'anycook_db' is the main database. 'zombiecooking_db' is only created to import old db data.
  • You can import a db schema by
    • using a terminal command: $ mysql -P 3333 -u root anycook_db < sql-file.sql
    • using MySQL Workbench (can be downloaded here)
      1. In the menu 'Database' select 'Connect to Database...'
      2. Change the port to 3333 and click OK
      3. Load the latest testdump. (For anycook internals: Latest dump is located in the root of the BTSync folder)
      4. Click on the lighning symbol

Adding user and recipe images

  • Copy image folders from btSync into ./images in project root.

About

REST Api for anycook

License:GNU General Public License v3.0