A Laravel-based API for a music application focused on the Gulf region.
-
Clone the repository:
git clone https://github.com/your-username/gulfmusic.git cd gulfmusic -
Install dependencies:
composer install npm install
-
Set up your environment:
cp .env.example .env
Update your
.envfile with your database credentials and other settings. -
Generate application key:
php artisan key:generate
-
Run database migrations:
php artisan migrate
-
(Optional) Seed the database:
php artisan db:seed
-
Start the development servers:
# In one terminal, for the Laravel backend php artisan serve # In another terminal, for the frontend assets npm run dev
The following API endpoints are available:
POST /api/register: Register a new user.POST /api/login: Log in a user and receive a JWT token.POST /api/logout: Log out the currently authenticated user.GET /api/user: Get the currently authenticated user's information.
To run the test suite, use the following command:
php artisan testPlease see CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE.md file for details.