This REST API is created using Laravel framework. As a backend or REST API, it provide, validate, save and delete data in database according rule that has been set. This API provide data for StokEase APP for product and activities in MSMEs retail industries:
- Docs can be accessed in localhost:8000/docs or this file.
- This REST API created using MVC architecture.
- All of dummy data or backup database can be accessed in this folder.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
- Laravel 11.
- Blade and PHP programming language.
- MVC (Model-View-Controller).
- MySQL Database.
- Open terminal in targeted folder
- Clone Repository
git clone https://github.com/AktoFredy/IventarisTA_10778.git. - Open repo folder.
- Run bash
composer install. - Rename and copy .env file by running bash
cp .env.example .env - Generate app key by running bash
php artisan key:generate. - Configure database in .env file.
- Migrate all database
php artisan migrate.
- Serve in localhost(default 127.0.0.1) with default port by running bash command:
php artisan serve- Serve in custom host and port by running bash command (replace [] with actual value):
php artisan serve --host [custom ipv4] --port [custom port]