Giter Site home page Giter Site logo

supreethsubbaraya / lastuser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hasgeek/lastuser

0.0 1.0 0.0 1.94 MB

User management in each new app is a pain. This is the last time you should be doing it

Home Page: https://auth.hasgeek.com/

License: BSD 2-Clause "Simplified" License

Ruby 0.07% Python 90.18% Gherkin 0.15% CSS 0.49% JavaScript 0.03% HTML 8.83% Mako 0.09% Shell 0.17%

lastuser's Introduction

Lastuser

Build status Coverage status

User management is a pain. Apps shouldn't have their own user management code if it can be centrally managed. Lastuser does it for HasGeek. This open source code release is intended to help you examine our code, work with our APIs, and lend a helping hand where needed.

Usage

Lastuser requires PostgreSQL and Python 2.7. A virtualenv is strongly recommended. Instructions:

$ git clone https://github.com/hasgeek/lastuser
$ cd lastuser
$ pip install -r requirements.txt
$ createdb lastuser
$ cp instance/settings-sample.py instance/development.py

Edit to customize instance/development.py as needed, then populate the database:

$ python manage.py createdb

You should now be able to run the development server, accessible at http://localhost:7000:

$ python runserver.py

To use Lastuser effectively, you will need to create an /etc/hosts entry pointing to localhost, for Lastuser and any client apps you may need:

127.0.0.1 lastuser.mymachine.local
127.0.0.1 clientapp.mymachine.local

Tests

Before you run the tests:

$ pip install -r test_requirements.txt
$ cp secrets.test.sample secrets.test

secrets.test contains API keys for various external services Lastuser works with. Note that Lastuser's functional tests are incomplete at this time.

Next, create a test database. Do not use your development database for this as the test database is wiped after each run of the test suite:

$ createdb lastuser_test_app

Run the tests from the root directory of the project:

$ ./runtests.sh

Support

Feel free to file a bug report for anything that doesn't work or is amiss in our code. We're available for a chat in #tech on friends.hasgeek.com.

lastuser's People

Contributors

jace avatar pyup-bot avatar miteshashar avatar kracekumar avatar vidya-ram avatar shreyas-satish avatar netroy avatar karthikb351 avatar nigelbabu avatar harisibrahimkv avatar btbytes avatar punchagan avatar tuxdna avatar salmanulfarzy avatar

Watchers

James Cloos 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.