Giter VIP home page Giter VIP logo

eppla-online-shopping's Introduction

Build Status Total Downloads Latest Stable Version License

About this project

This is the 2nd Project I work on building an E-Commerce platform, this time is with Laravel

About Laravel

Laravel is a web application framework with expressive, elegant syntax. I believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects

Laravel Docs: https://laravel.com/docs

Get start with this project

To keep up with my Project, after cloning to your local machine, please read and follow these steps throughly :

Step 0: Use your own Command Line, cd to project folder

Step 1: Install Composer Dependencies in composer.json

composer install

Step 2: Install NPM Dependencies in package.json

npm install

Step 3: Create a copy of your .env file

A Laravel Project need an .env file, which is not provided after cloning my project (of course)

Create your own .env file and fill in required field to get this project run

cp .env.example .env

Step 4: Generate an app encryption key

Laravel requires you to have an app encryption key which is generally randomly generated and stored in your .env file. The app will use this encryption key to encode various elements of your application from cookies to password hashes and more

php artisan key:generate

Now check the .env file again, you will see that it now has a long random string of characters in the APP_KEY field. We now have a valid app encryption key

Step 5: Add database information to allow Laravel to connect to the database

Fill in the DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD options in .env file which matches the credentials of the database you just created. This will allow you to run migrations and seed the database in the next step

Step 6 (Optional): Set up your own Voyager

Voyager is a packet to create Admin dashboard for your app. Here I use Voyager to create a Site for Admin and Seller to manage (CRUD) their own Products

I have already attach Voyager package in composer.json, to start with Voyager, run:

php artisan voyager:install --with-dummy (To create some dummy data for Admin Site)

You can't keep up with my setting for Voyager, since its not allowed to push up Voyager setting on Github, So you have to do it on your own :((

PS: I have updated the repo, pls read Step 8 to continue with my Voyager data setting or you can proceed to Step 7 ...

You can either choose step 7 or step 8 to keep up with my work :)

Feel free to read Voyager docs here: https://voyager-docs.devdojo.com

Step 7 (Optional): Create your own database

I 've already prepared some seed files for a new MySQL Database in 'database' folder

Please see all 3 folders: Migration, Factory and Seed and run these:

php artisan migrate
php artisan db:seed
php artisan serve

Step 8 (Optional): Set up data for Voyager

I 've created a new Artisan command to seed data for the Voyager database

By following this step, you are now having a full-control database with Products, Categories ... and 3 types of User with different roles

php artisan eppla:install

Step 9: Set up Stripe Payment

My project uses Stripe (for now) as the main method for customers to check out order

Feel free to contact me to be provided with needed key for payment process

Now you have completed starting up my project, just dive in and enjoy yourself !!!

For contributors

Feel free to contribute to my project since its still very basic though

Remember to create new branch and pull request if u want to develop this site !!!

Enjoy this project and STAR me if u like :))

eppla-online-shopping's People

Contributors

quangdvn avatar

Stargazers

Quang Trung avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.