Giter Club home page Giter Club logo

ensphere's Introduction

Ensphere

I've writen this to build a process for creating modular based applications. It is basically Laravel 5.2 with a few commands and wrappers to sync everything automatically without having to manually add middleware, service providers or aliases and to manage frontend dependencies better without duplication libraries.

Test case preperation:

Firstly make sure you have bower installed, run bower to check.

npm install -g bower

and also make sure node is installed (https://nodejs.org/en/), run npm in terminal to check.

Create a local database called l5 with credentials root root (make sure it's empty).

Open up ~/.bash_profile and add the following function and then restart terminal : (for those with hidden files not visible and using sublimetext2 run /Applications/SublimeText2.app/Contents/SharedSupport/bin/subl ~/.bash_profile in terminal)

[running source ~/.bash_profile from terminal will refresh without having to restart it]

alias composer="php ~/composer.phar"
alias artisan="php artisan"
function _ensphere {
	composer create-project ensphere/ensphere --repository-url=http://pmcom.packagist.wden.co.uk/ --stability=dev "$1"
}
alias ensphere=_ensphere

if you haven't got composer installed globally, go to https://getcomposer.org/composer.phar and save it in ~/composer.phar

Test case

Navigate to your documents folder

cd ~/Documents/

Create a testcase folder

mkdir testcase

and then cd into it

cd testcase

Create a default application or module by running

ensphere baseapp

This will run the standard composer create command along with some extra installation.

Hopefully this has all installed correctly so cd into baseapp and start a server up:

cd baseapp
artisan serve

(if you already have the default port in operation use artisan serve --port=8888)

Navigate to http://localhost:8000/admin/login in your browser and you should receive an error (404 Exception).

Now back to terminal and create a new tab in terminal (command + t) and then require the authentication module.

composer require ensphere/authentication:dev-master

Once installed, go back to your browser and hit refresh, boom!

The MIT License (MIT)

Copyright (c) 2016 ensphere

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.