Find Jobs
Hire Freelancers

Write some Software

€30-250 EUR

Cancelled
Posted about 8 years ago

€30-250 EUR

Paid on delivery
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 nem contains the search term in the following fom: { "id":978, "name":"rizsborecet", "default_unit":"42", "units":[ { "id":6, "name":"ml" }, { "id":7, "name":"dl" } ], "group":[ { "name":"Ecet\/dresszing", "id":87 } ] } from this only, the name and the id is important for this task. For the autocomple feature use JQuery autocomplete: [login to view URL] 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!) I will answer every application! Good Luck
Project ID: 9842185

About the project

1 proposal
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average €199 EUR for this job
User Avatar
Dear Sir, Hope you are doing well, I have read your job description, I am willing to work with you. I have already done similar job and win 5 star rating with wonderful review. Key Responsibilities are : - I ll complete all of your requirements - I ll do more tweaks for you as well Sir i ensure you that i am best suit for this post. Please open chat with me so we can discuss more in details Looking forward to hear from you. Best Regards, Waheed Gondal
€199 EUR in 6 days
4.9 (61 reviews)
7.1
7.1

About the client

Flag of HUNGARY
Hungary
0.0
0
Member since Mar 4, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.