Cancelled

Search function for recipe site (Laravel 5.2)

Hi freelancers,

I am looking for freelancers to help me with simple programming tasks on the longer run.

I am developing a recipe site (Laravel 5.2, PHP 5.6), and I need a search functionailty. Given a list of ingredients, this search function should return the list of those recipes, that contain all the given ingredients.

The recipes and the ingredients are stored in a database, and there is a pivot table telling which ingredients are used for which recipe.

The relevant part of the database schema is this:

Schema::create('recipes', function (Blueprint $table) {

$table->increments('id');

$table->text('name');

$table->text('url');

$table->text('content');

$table->text('file_name');

$table->unsignedInteger('user_id');

$table->unsignedInteger('minutes');

$table->unsignedInteger('price');

$table->unsignedInteger('servings');

$table->text('imported_doc');

$table->boolean('import_warning');

$table->timestamps();

$table->foreign('user_id')

->references('id')

->on('users');

});

Schema::create('ingredients', function (Blueprint $table) {

$table->increments('id');

$table->string('name');

$table->unsignedInteger('group')->nullable()->index();

$table->foreign('group')->references('id')->on('ingredients')->onDelete('cascade');

$table->boolean('pure_group');

$table->timestamps();

});

Schema::create('ingredient_recipe', function (Blueprint $table) {

$table->unsignedInteger('ingredient_id')->nullable()->index();

$table->foreign('ingredient_id')->references('id')->on('ingredients')->onDelete('cascade');

$table->unsignedInteger('alternate_id')->nullable()->index();

$table->foreign('alternate_id')->references('id')->on('ingredients')->onDelete('cascade');

$table->unsignedInteger('recipe_id')->index();

$table->foreign('recipe_id')->references('id')->on('recipes')->onDelete('cascade');

$table->unsignedInteger('amount')->nullable();

$table->boolean('optional');

});

On the front end I need a search field with auto comple function, and a search. With this field the user can input the ingredient one by one, and then start the search by clicking on the search button.

You can query the list of ingredients with a REST API. http://{baseurl}/ingredients/list/{search_term} will return the list of ingrendients whose name contains the search term in the following form:

{

"id":978,

"name":"apple",

"default_unit":"42",

"units":[

{

"id":6,

"name":"kg"

},

{

"id":7,

"name":"piece"

}

],

"group":[

{

"name":"Fruit",

"id":87

}

]

}

from this only, the name and the id is important for this task.

For the autocomple feature use JQuery autocomplete: [url removed, login to view]

The search result should contain the name and url of the recipes.

Write unit test for this feature!

There is no need to "design" the UI, but use bootstrap wherever possible.

Workflow

- Sign up to GitLab

- You will be added to the project

- Fork the project

- Make your changes

- Test your changes

- Create a merge request

Applying

In your application please include:

- Estimated amount of work hours needed to complete this task

- I you have one, then include your most relevant Project. (Strictly only one!)

Please do not

- include your whole resume. (I can read that on your profile!)

- send a copy - paste application. (These will be ignored!)

Be careful, this is a fixed priced project, so name the price you wish to earn with the whole project, and not your hourly rate.

I will answer every application that fits to these guidelines.

Good Luck!

Skills: Javascript, Laravel, MySQL, PHP

See more: ui freelancers, ui 56 form, text string search, string search in c, start bootstrap com, sign up form for freelancers, sign freelancers from site, search ui design, search text string, search string in c, search string c, search string, search c string, resume guidelines, rest api design, project search for freelancers, project blueprint design, programming project for freelancers, price list for freelancers 2016, price for freelancers

About the Employer:
( 0 reviews ) Hungary

Project ID: #9842235

1 freelancer is bidding on average $88 for this job

Batista111

Hello, I am very interested in your project. Please come on chat for detail discussion so that I can start your project asap. I am 5 years experienced ,ASp.net,C#,PHP,HTML5/CSS3,MYSQL,WordPress,Bigcommerce exp More

$105 USD in 3 days
(82 Reviews)
6.2
rakesh4email

hi I have good experience have done this kind of task perfectly on time. please accept my bid. I will try to finish this task on this weekend. I am working in multinational company have 5+ years of experience. please a More

$133 USD in 3 days
(1 Review)
2.4
rkjha124

Having 5+ years of experience in website designing and SEO process. Having a good experience in PSD Designs, PSD to HTML / CSS3. I have worked on various type of Website starting from static to dynamic. Designed va More

$88 USD in 1 day
(0 Reviews)
0.0