Code Monkey home page Code Monkey logo

auto-guest's Introduction

Creates a guest account for non-logged in users

Installation

  1. Run meteor add anthonyastige-auto-guest
  2. Add AutoGuest.go([callback]) to your code to be called once from the client
  3. Optional: Cleanup the UI
    1. Option1: Override of accounts-ui-unstyled with anthonyastige-auto-guest-accounts-ui-unstyled
    2. cd ~ (Or wherever you want to put this)
    3. git clone [email protected]:AnthonyAstige/auto-guest-accounts-ui-unstyled.git
    4. cd ~/myProject/packages (Get into your project's packages folder)
    5. ln -s ~/auto-guest-accounts-ui-unstyled accounts-ui-unstyled
    6. Option2: Twitter bootstrap replacing accounts-ui with bootstrap fork auto-guest-meteor-accounts-ui-bootstrap-3
    7. meteor remove accounts-ui
    8. meteor add anthonyastige:auto-guest-meteor-accounts-ui-bootstrap-3
    9. Follow instructions from [anthonyastige:auto-guest-meteor-accounts-ui-bootstrap-3] ( https://github.com/AnthonyAstige/auto-guest-meteor-accounts-ui-bootstrap-3) (Note: Instructions not updated to new fork name as it's a quick fork)

Functionality

Whenever the current session has no user, create and log into a guest account.

  • New visitors
  • When logged out

The optional callback method is called whenever a new guest user is created.

anthonyastige-auto-guest-accounts-ui-unstyled

Makes {{> loginButtons}} work for guest users (emulates logged out state, updates ratehr than creates, ....)

Since this is over-riding a package and not using the standard versioning system, you'll have to manually update your clone.

This package has not been tested in all cases facebook/google/etc logins, etc. Though I expect it to be fairly easy to modify and I welcome pull requests.

auto-guest's People

Contributors

anthonyastige avatar

Watchers

 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.