This guide walks you through setting up the CareerTrack API on your local machine — from cloning the repository and installing PHP dependencies to running database migrations and starting the Laravel development server. By the end you will have a fully functional API running atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ericcobasdev/careertrack-api/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8000.
Prerequisites
Before you begin, make sure the following tools are installed on your system:- PHP 8.3+ — CareerTrack requires PHP 8.3 or higher (
php -vto check) - Composer — PHP dependency manager (getcomposer.org)
- Node.js — Required for building Vite front-end assets bundled with Laravel
- Git — To clone the repository
Installation Steps
Set up the environment file
Copy the example environment file and generate a unique application key:
php artisan key:generate writes a 32-character random string to APP_KEY in your .env file. This key is used for encryption and must never be shared. See Configuration for a full breakdown of every environment variable.Create the SQLite database file
The default configuration uses SQLite. Create the database file that Laravel expects:
Run database migrations
Apply all migrations to create the application tables, including
job_applications and users:One-command setup: The After it completes, run
composer.json setup script automates steps 2–6 in a single command. It runs composer install, copies .env.example to .env if it does not exist, generates the application key, runs migrations, installs Node dependencies, and builds front-end assets:php artisan serve to start the server.Verifying the Installation
Once the server is running, verify the API is responding by sending a registration request:201 Created status with a JSON body containing the new user and a Sanctum bearer token. If you receive an HTML error page, check that APP_KEY is set in your .env and that the database file exists.
Running Tests
CareerTrack ships with a PHPUnit test suite. Run it with either command:composer run test script clears the config cache before running the suite, which is useful when environment values have changed between runs.