Giter Club home page Giter Club logo

cleancrm-2017-10-29's Introduction

Splate

A SaaS Boilerplate to speed up your SaaS Application Developement

Installation

Create new Splate project

composer create-project cleaniquecoders/splate

Update database connection and email configuration in .env.

Login with Facebook

Configure Facebook App Details in the .env file and set the config/auth.php the oauth.facebook key to true to enable login with Facebook.

Get the client id and secret from Facebook for Developers by creating application.

FACEBOOK_CLIENT_ID=
FACEBOOK_SECRET=
FACEBOOK_REDIRECT=http://localhost:8000/auth/facebook/callback

You may want to refer to this tutorial if you have any issues with setting up the Facebook login.

Login via API

API endpoint to login, using http method of POST. Login using email and password field.

http://domain.com/api/auth

You should get something like this once you're successfully logged in.

{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4MDAwXC9hcGlcL2F1dGgiLCJpYXQiOjE0NzY5NzMyOTAsImV4cCI6MTQ3Njk3Njg5MCwibmJmIjoxNDc2OTczMjkwLCJqdGkiOiJkYzY3NjMxOTQ3MzYzMmFjMjQ4ZDg0ODgzZTI1N2M3ZiJ9.k5b8ubtSTRi6T8_kqLbxzmN4atC2v4XKAvmyn4a2YEI"}

Themes

This web app boilerplate comes with pre-installed and configured with Laravel Theme by teeplus. Following are common commands can be use for theme development.

Create a new theme

php artisan theme:create theme_name

Middleware

The teeplus/laravel-theme does not come with a middleware.

With this middleware, you still can use return view('home.index') in your controller.

Usage

Route::get('dashboard','HomeController@index')->middleware('theme');

OR

Route::get('dashboard','HomeController@index')->middleware('theme:theme_name,layout_name');

Assets and Components

To include assets

{{ Theme::asset()->container('footer')->add('delete-script', 'js/delete.js') }}

To include partials or components

{!! Theme::partial('components.checkboxes',['options' => $roles,'label' => 'Role', 'selected' => [], 'name' => 'role_id']) !!}

TODO

  • Require middleware to check if user not yet activate their account, redirect to resend activation account link
  • User Manager
  • Error pages - 403, 404, 500
  • Laravel Passport, Consume Own API Middleware
  • Migrate User Manager using VueJs
  • Provide Installer for this boilerplate
  • Login with Facebook
  • JWT
  • Laravel Collective
  • Support Themes

cleancrm-2017-10-29's People

Stargazers

 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.