Name | NRP |
---|---|
Haikal Athallarik | 5025221232 |
Revy Pramana | 5025221252 |
In this project, We developed an Web application using Laravel that implements CRUD (Create, Read, Update, Delete) features. CRUD is applied to the Products section, where each user can:
- View other users products in the information page
- Add, delete, and update their own products.
- Users only have access to modify their own products and cannot modify other users products. This application ensures structured access rights and management of products based on ownership.
composer install
npm install
- Copy the
.env.example
to another file with the name.env
- Generate the
.env
key usingphp artisan key:generate
Because we're using PostgreSQL, we need to make sure we already configure the extension for PostgreSQL in the php.ini
file
Search inside the php.ini
file and remove the semicolon
After that, configure the .env
file for the PostgreSQL database
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=fp_pbkk
DB_USERNAME=postgres
DB_PASSWORD=<password for username postgres>
Before migrating, make sure to make the database fp_pbkk
first in PostgreSQL so we can migrate the database directly with no error
After that, we can run the command below inside the terminal
php artisan migrate:fresh --seed
After migrating the database, We can view the result of the project by running these commands:
php artisan serve