Develop Laravel Backend API with React Frontend (needed within 3 days)
Budget: $30 – $250 USD
Job Description:
We are looking for a skilled developer to work on a Laravel backend with a React frontend. The required environment and technologies for this project include:
Backend: Laravel (PHP)
Database: MySQL
Frontend: React
Languages: Arabic, English, Urdu
Time: Done maximum in 3 Days
Project Requirements:
Part 1: API Development
Create a POST API endpoint that accepts data in JSON format as follows:
{
"mobile": "966500000000",
"lat": 29.845062255859375,
"lon": 47.78010177612305
}
API Logic:
Check for an existing record in the Stores table using the mobile number as the primary key.
If the mobile number does not exist, create a new record with the provided mobile number and store the location as a POINT. Generate a temporary link valid for 16 hours and respond with:
{
"messages": [],
"data": {
"url": "https//XXX.com?link=HFHCFKASUCKASJDKJHKSAHK",
"errorInfo": "",
"storeCreated": true,
"storeExists": true
}
}
If the mobile number already exists, generate a temporary link valid for 16 hours and respond with:
{
"messages": [],
"data": {
"url": "https//XXX.com?link=HFHCFKASUCKASJDKJHKSAHK",
"errorInfo": "",
"storeCreated": false,
"storeExists": true
}
}
If there’s an error, return a response like:
{
"messages": [],
"data": {
"url": " ",
"errorInfo": "DESCRIBE THE ERROR HERE",
"storeCreated": false,
"storeExists": false
}
}
Part 2: Temporary Link Behavior
When the temporary link is accessed, the page should display the following:
Total number of registered stores.
Store order number (based on its creation sequence).
Store name.
Store location (latitude and longitude on a map). When the location is updated, the address (region, city, district) should also be updated dynamically. Use an SQL query to determine the exact address based on the geographical location. If no district data is available, provide an "Other" option.
Store address, including region, city, and district.
Store status, selectable from a predefined list (e.g., operational, under maintenance, opening soon).
Store type, selectable from a predefined list (e.g., mall, part of a small market, standalone shop).
Working days (multi-select).
Daily working hours.
Main products (multi-select from a predefined list).
Sub-products (dependent on selected main products).
Sales method, selectable from a list (e.g., only two options).
Storefront image upload (allow users to upload an image).
Contact phone number.
Store email.
Acknowledgment checkbox 1.
Acknowledgment checkbox 2.
Acknowledgment checkbox 3.
Save button to update the data in the database.
We are looking for a skilled developer to work on a Laravel backend with a React frontend. The required environment and technologies for this project include:
Backend: Laravel (PHP)
Database: MySQL
Frontend: React
Languages: Arabic, English, Urdu
Time: Done maximum in 3 Days
Project Requirements:
Part 1: API Development
Create a POST API endpoint that accepts data in JSON format as follows:
{
"mobile": "966500000000",
"lat": 29.845062255859375,
"lon": 47.78010177612305
}
API Logic:
Check for an existing record in the Stores table using the mobile number as the primary key.
If the mobile number does not exist, create a new record with the provided mobile number and store the location as a POINT. Generate a temporary link valid for 16 hours and respond with:
{
"messages": [],
"data": {
"url": "https//XXX.com?link=HFHCFKASUCKASJDKJHKSAHK",
"errorInfo": "",
"storeCreated": true,
"storeExists": true
}
}
If the mobile number already exists, generate a temporary link valid for 16 hours and respond with:
{
"messages": [],
"data": {
"url": "https//XXX.com?link=HFHCFKASUCKASJDKJHKSAHK",
"errorInfo": "",
"storeCreated": false,
"storeExists": true
}
}
If there’s an error, return a response like:
{
"messages": [],
"data": {
"url": " ",
"errorInfo": "DESCRIBE THE ERROR HERE",
"storeCreated": false,
"storeExists": false
}
}
Part 2: Temporary Link Behavior
When the temporary link is accessed, the page should display the following:
Total number of registered stores.
Store order number (based on its creation sequence).
Store name.
Store location (latitude and longitude on a map). When the location is updated, the address (region, city, district) should also be updated dynamically. Use an SQL query to determine the exact address based on the geographical location. If no district data is available, provide an "Other" option.
Store address, including region, city, and district.
Store status, selectable from a predefined list (e.g., operational, under maintenance, opening soon).
Store type, selectable from a predefined list (e.g., mall, part of a small market, standalone shop).
Working days (multi-select).
Daily working hours.
Main products (multi-select from a predefined list).
Sub-products (dependent on selected main products).
Sales method, selectable from a list (e.g., only two options).
Storefront image upload (allow users to upload an image).
Contact phone number.
Store email.
Acknowledgment checkbox 1.
Acknowledgment checkbox 2.
Acknowledgment checkbox 3.
Save button to update the data in the database.