dushimsam / zatec-project

This is a music app built with Laravel for the backend and Next.js (React) for the frontend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ALL SET UP NOW 👏 ... , you can access the application at http://localhost:3000/

2. 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:

Phone Number: +250 786945831
Email: dushsam100@gmail.com
LinkedIn: https://www.linkedin.com/in/samuel-dushimimana-364a19194/

About

This is a music app built with Laravel for the backend and Next.js (React) for the frontend.

License:MIT License


Languages

Language:PHP 46.5%Language:JavaScript 39.2%Language:SCSS 7.0%Language:Blade 6.0%Language:CSS 0.7%Language:Shell 0.3%Language:Dockerfile 0.2%