Git Product home page Git Product logo

shops's Introduction

Welcome to Nearby Shops

Hey! This is the most simple and easy example to show the power of Laravel 5.5, VueJS 2.5 and Vuetify 0.17.

This application was coded following the instructions provided to complete the Hidden founders coding challenge.


How to deploy

Nearby shops is a PHP & Javascript application, so you will need to have a well configured HTTP server. If not then you should configure one before going any further.

You will need to complete an easy 3 steps deployment process:

Step 1: Clone & Install

You will need to clone this repository on your public directory:

git clone https://github.com/badry-abderrahmane/shops.git

The next thing to do is installing the required dependencies, run the following command :

composer install

And you need to generate a key for the application, you could do that by running:

php artisan key:generate

Step 2: Database

Note: If you wish to use the existing Test Database keep the parameters as they are in the config file. It already contains the needed collections.

I did choose to implement a MongoDB database to keep it simple and clean. The database configuration is located in : config/database.php, you will need to set the "port" and "dsn" as below:

	'mongodb' => [
	            'driver'   => 'mongodb',
	            'port' => ,
	            'dsn' => '' => '',
	        ],

You will need also to run the migration command:

> php artisan migrate

You will need also to load the dump data for test running the command below

mongorestore --drop -d db_name -c collection_name path/file.bson

As we are dealing with locations you should add a "2dsphere" index on the shops collection

Step 3: Deploy

You need to run this command below

> php artisan serv

Official documentation

Laravel 5.5 : Official Guide VueJs 2.5 : Official Guide VuetifyJS 0.17 : Official Guide

shops's People

Contributors

badry-abderrahmane 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.