Skip to content

jyotika3007/flash-sale

Repository files navigation

Flash Sale Laravel Project

Follow the steps to run the project

  1. Clone the repo in your machine.
  2. Then move to project folder and open terminal there.
  3. Run this command in terminal: composer install . This command will install all the dependencies of the project.
  4. Now create a DB with name shop or something else.
  5. Then create .env file where need to define DB name and host.
  6. After setting .env file, run migration command as :
    php artisan migrate
    This will create DB schema
  7. Now use the DB seeder command to creat random users:
    php artisan db:seed

All these steps will setup the project in local machine.

To run project , run the below command:

php artisan serve


Project will run on https://127.0.0.1:8000

Admin Section

To add deals on website, rrun the below url:

an Admin dashboard will open. Now you will see a Navigation bar on top from where you can Add the Flash Sale and get the List of all the sales.

To add flash sale, this url will be used:


To get list of all flash sales, this url will be used:



Website

Use the USER IDs from rnage 1 to 10 in url to see today's deal as:

When Uid id passes in URL parameters, user will able to see the deal on home page

User can buy a one and only quantity of a deal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published