• Stars
    star
    136
  • Rank 267,670 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 4 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Laravel 10 eCommerce site with Vue 3 and Stripe

CircleCI Quality Gate Status

Laravel eCommerce

Ecommerce site with Laravel 10, Vue 3 and Stripe.

Screenshot:


Project screenshot


Stripe screenshot:


Stripe screenshot


Features

  • Laravel 10

  • Vue 3 with SFC and <script setup> syntax

  • Pinia state management

  • State persist with pinia-plugin-persistedstate

  • Product search integrated with Laravel

  • Order form setup with FormKit and builtin validation

  • Stripe for payments

  • Easily change currency by setting two environment variables: CASHIER_CURRENCY and CASHIER_CURRENCY_LOCALE

  • Code linting with Laravel Pint

  • CSS animations

  • Responsive mobile menu

  • SonarCloud code quality scanner integration on all pull requests

  • Laravel Dusk and Jest tests with CircleCI integration

Main dependencies:

  • vue: Vue.js 3, a progressive JavaScript framework
  • vue-router: Official router for Vue.js 3
  • pinia: Intuitive, type safe, light and flexible Store for Vue using the Composition API
  • pinia-plugin-persistedstate: Persist and rehydrate Pinia stores
  • swiper: Responsive image carousel with mobile touch support
  • @stripe/stripe-js: Stripe.js and Elements for collecting payment information
  • @formkit/vue: Form handling and validation for Vue 3
  • @formkit/addons: Addons for FormKit, including support for Stripe Elements
  • swrv: Stale-While-Revalidate data fetching for Vue
  • lodash: A modern JavaScript utility library

Setup

  • Fork or clone the project

  • Ensure you have PHP 8.2.4 or newer installed and setup properly (alternatively use Docker, see https://laravel.com/docs/10.x/sail)

  • Ensure you have access to a PostgreSQL database

  • Ensure you have Node installed

  • Rename .env.example to .env and modify the values

  • Run composer install to install the PHP dependencies with Composer. Check out https://getcomposer.org/ if necessary

  • Run npm install to install the Node dependencies needed by the project. Check out https://nodejs.org/en/ if necessary

  • Run php artisan migrate:install to setup the Laravel database migrations

  • You should create at least one sample product. Although you can use the builtin factory seeders, I prefer to do manual creation for testing purposes.

    To do so run these commands after running php artisan tinker:

    $product = new App\Models\Product();
    $product->name = 'Example Product';
    $product->slug = 'example-product';
    $product->description = 'Example product description';
    $product->imageUrl = 'https://placehold.co/400x400';
    $product->price = 99;
    $product->save();
  • Run npm run watch to serve the Vue 3 files

  • Run php artisan serve to serve the PHP files

  • Open up http://localhost:8000 in your browser

TODO

  • Do WCAG analysis and ensure there are no issues

  • Consider adding an admin dashboard

  • Look into performance optimization

More Repositories

1

nextjs-woocommerce

๐Ÿ”ฅ Next.js (React) headless eCommerce site with Typescript, WordPress (WooCommerce) backend and Algolia search
TypeScript
471
star
2

nuxtjs-woocommerce

โšก๏ธ Nuxt 3 and Vue 3 headless eCommerce site with WooCommerce backend and Algolia search
Vue
194
star
3

wp-algolia-woo-indexer

โœ๏ธ WordPress plugin that sends WooCommerce products to Algolia. Used with headless eCommerce.
PHP
34
star
4

Modern-JavaScript-for-the-Impatient

Code for the book Modern JavaScript for the Impatient
JavaScript
28
star
5

headless-wp

Plugin to enable a headless WP experience
PHP
27
star
6

dfweb-v3

๐Ÿก DFWeb personal portfolio version 3 with Next.js, Sanity.io, Framer Motion, Storybook, Tailwind CSS, Cypress, Playwright and more. 98% test coverage.
TypeScript
20
star
7

todo-hooks

React TODO app with Hooks and Ant Design for UI
JavaScript
12
star
8

sveltekit-chatGPT

Web interface for chatGPT with Sveltekit
Svelte
8
star
9

earthdoom

๐ŸŒŽ Full-stack strategy game inspired by Planetarion. Built with T3 stack, Typescript, Prisma, tRPC, mySQL, Tailwind, Next.js, Clerk and more.
TypeScript
6
star
10

wordpress-resources

A curated list of interesting Wordpress resources
PHP
5
star
11

sanity-ecommerce

Sanity ecommerce
JavaScript
4
star
12

astro-woocommerce

Ecommerce with Woocommerce backend and frontend with Astro framework and Vue 3
Vue
3
star
13

stein-saks-papir

โœ‚๏ธ Rock, paper and scissors game implemented in React.
JavaScript
3
star
14

React-themes-tailwind

React themes and components created with Tailwind CSS
JavaScript
2
star
15

firestore-ecommerce

Security rules example for Firestore
2
star
16

Statens-Vegvesen

Display vehicle information from https://www.vegvesen.no. Uses Vite, Typescript, HTML5 and Bootstrap 5..
TypeScript
2
star
17

fullstack-nextjs-typescript

Fullstack application with Strapi, Nextjs, Typescript and Bootstrap
TypeScript
1
star
18

nav-jobs

Showing jobs from https://arbeidsplassen.nav.no
TypeScript
1
star
19

w3bdesign

Secret README for my profile
1
star
20

Codewars-PHP

PHP solutions for Codewars challenges
PHP
1
star
21

express

SaaS App with Node.js, Express, MongoDB and PassportJS for authentication
CSS
1
star
22

vanilla-js-methods

Vanilla JS implementation of Javascript methods
1
star
23

carasent-react-typescript

Kodeรธvelse med React og Typescript
TypeScript
1
star