This project is a shopping cart application built as a task for FullStack Developer position at Builtt
Make sure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/trujic1000/shopping-app-builtt.git
-
Navigate to the project directory:
cd shopping-app-builtt
-
Install PHP dependencies:
composer install
-
Install JavaScript dependencies:
npm install
-
Copy the environment file:
cp .env.example .env
-
Generate an application key:
php artisan key:generate
-
Configure your database:
Update the
.env
file with your database connection details. -
Run migrations:
php artisan migrate
-
Seed the database:
php artisan db:seed --class=ProductsTableSeeder php artisan db:seed --class=UsersTableSeeder
-
Create a symbolic link to make the storage accessible from the web:
php artisan storage:link
-
Compile assets:
npm run dev
-
Start the development server:
php artisan serve
-
Visit the application:
Open your browser and go to http://localhost:8000
To access the application with a test user account, you can use the following credentials:
- Email: admin@builtt.com
- Password: admin123