- PHP Version 7.4 or Above
- Composer
- Git
Use the package manager (composer and npm) for installing
- Do the following commands for installing
git clone https://github.com/volkandogan/OrderApp.git
cd OrderApp
composer install
copy .env.example .env
- Create a database
- Setting database name, username, and password in your .env file
- Do the following instructions if you're done setting database in .env
php artisan migrate
php artisan key:generate
php artisan serve
Logs a user into the application
- Form fields:
- email: string
- password: string
- Response:
- token
store a order into the application
-
Form fields:
- product_id: integer
- user_id: integer
- shipping_date:date
- quantity:integer,
- adress:string
-
Response:
- status
- data
- message
update an order with order id
-
form fields: - quantity: integer
-
response:
- status
- data
- message
get all orders