Before you start, make sure you have the following prerequisites installed on your system:
- PHP (>= 8.x)
- Composer
- Laravel (>= 10.x)
- Database (e.g., MySQL, PostgreSQL)
Open a command prompt or terminal and follow the instructions below
-
Clone this repository:
git clone https://github.com/7j4n1/AllocationFUTA.git cd AllocationFUTA
-
Install PHP dependencies using Composer:
composer install
or
composer update
-
Create a .env file by copying the .env.example file and configure your database settings:
cp .env.example .env
Configure the database config variables as follows: Kindly ensure that your mysql is running and you have created the DB_DATABASEname you specified here
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=
-
Generate an app key
php artisan key:generate
-
Run the migrations:
php artisan migrate
in order to avoid error, endure that you've started your xampp Apache & Msql servers and you've created a new database name corresponding to DB_DATABASE value you set
-
Start the development server:
php artisan serve
Laravel API is now up and running on {http://localhost:8000} which is the base url!