Loading repository data…
Loading repository data…
mostafizurhimself / repository
This is a digital e-commerce project. Here you can sale your digital arts, photos, graphics, illustration etc.
If you want to run this project on your local environment, please follow these steps:
Clone the repository:
git clone https://github.com/MdMostaFizurRahaman/digital-ecommerce.git
There are two parts of this project:
To run the backend application, follow these steps:
cd digital-ecommerce/backend
Install dependencies:
composer install
Now, copy the .env.example file to .env file and change the credientials with your own values.
cp .env.example .env
Run these following commands to generate APP_KEY and JWT_SECRET:
php artisan key:generate
php artisan jwt:secret
Run the database migrations
php artisan migrate
Start the development server with this command:
php artisan serve
Your application is now running on http://localhost:8000
To populate the database with dummy data, run the following command:
php artisan db:seed
For the frontend, cd into the frontend directory and run the following command.
npm install
Then copy the .env.example file and rename it to .env file.
cp .env.example .env
Update the .env file with your credentials.
APP_NAME="Digital Ecommerce"
APP_URL=http://localhost:8000
API_URL=http://localhost:8000/api/
PAYPAL_CLIENT_ID="YOUR_PAYPAL_CLIENT_ID"
STRIPE_PUBLISHABLE_KEY="YOUR_STRIPE_PUBLISHABLE_KEY"
MAPS_API="YOUR_MAPS_API"
Now, you can run the frontend applicaton with the following command.
npm run dev
or
npm run start
Now your frontend application will be running on http://localhost:3000/