Technical assessment for Ascentic (Backend)
Isuru Ranawaka
-
Clone the git repository
git clone https://github.com/isu3ru/tech-assessment-backend-ascentic.git
-
Create .env file
Copy and paste .env.example and rename to .env
or -
cp .env.example .env
-
Install dependencies
composer install
-
Set encryption key
php artisan key:generate
-
Set database connection
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=<YOUR_DATABASE_NAME> DB_USERNAME=<YOUR_DATABASE_USERNAME> DB_PASSWORD=<YOUR_DATABASE_PASSWORD>
Create database using
php artisan migrate --seed
. This will create the database and seed the initial admin user account. -
Run
php artisan serve