MUSIC APP
This is a music app built with Laravel for the backend and Next.js (React) for the frontend.
START THE BACKEND
Install Dependencies
cd backend
composer install
Update .env file
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
NOTE: Make sure you've created the MySQL database as well
Run the migration
php artisan migrate
Start the backend server:
php artisan serve
Note: The frontend expects this server to be running at http://localhost:8000/
START THE FRONTEND
1. Install from the source
Install dependencies for the frontend:
cd ../frontend
npm install
Start the frontend server:
npm run dev
http://localhost:3000/
ALL SET UP NOW 👏 ... , you can access the application at2. Run the Frontend Via docker
Make sure you have docker installed on the PC, then run each of the following commands in order.
docker pull dushsam/zatec_client:latest
docker run -p 3000:3000 dushsam/zatec_client:latest
Alternatively, You can also run it after building the image from the source files.
From the project's root directory run the following commands:
cd frontend
docker build --tag zatec_client:latest .
docker run -p 3000:3000 zatec_client
RUNNING THE TESTS
Update .env file
DB_TEST_DATABASE=your_database_test_name
DB_TEST_USERNAME=your_database_test_username
DB_TEST_PASSWORD=your_database_test_password
Clear the application cache and run test-db migrations
From the project's root directory run:
cd backend
php artisan config:clear
php artisan migrate --database=testing
php artisan test
CONTACT
For any issue don't hesitate to reach me out at: