-
Clone this project
- Run
git clone https://github.com/irfanasri96/collektr-assignment.git
.
- Run
-
Install package
- Run
composer install
to install composer package.
- Run
-
Setup enviroment
- Run
cp .env.example .env
. - Change the value for
APP_URL=
- Change the settings for database:
DB_CONNECTION=mysql DB_HOST= DB_PORT= DB_DATABASE= DB_USERNAME= DB_PASSWORD=
- Run
-
Install Application Key
- Run
php artisan key:generate
.
- Run
-
Migrate and seed database
- Run
php artisan migrate:seed
.
- Run
-
Clear cache
- Run
php artisan optimize
.
- Run
-
Test login to the application
- Login test credentials
email: [email protected] password: test123
-
Added testing enviroment
- Run
cp .env.example .env.testing
. - Change the value for
APP_ENV=testing
- Change the settings for database:
DB_CONNECTION=mysql DB_HOST= DB_PORT= DB_DATABASE= DB_USERNAME= DB_PASSWORD=
- Run
-
Run test
- Run
php artisan test
- Run
-
Notifications
You must be signed in to change notification settings - Fork 0
irfanasri96/collektr-assignment
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Product API assignment for Collektr
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published