Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

hasgeek/lastuser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fbbb86a · Apr 27, 2020
Feb 25, 2020
Feb 25, 2020
Apr 6, 2020
Apr 10, 2020
Apr 6, 2020
Mar 27, 2020
Apr 6, 2020
Apr 2, 2020
Apr 12, 2016
Aug 22, 2019
Aug 22, 2019
Mar 27, 2020
Aug 22, 2019
Jun 27, 2019
Feb 25, 2020
May 18, 2011
Jan 22, 2016
May 18, 2011
Apr 27, 2020
Mar 19, 2013
Feb 13, 2020
Apr 2, 2020
Feb 25, 2020
Apr 1, 2020
May 4, 2017
Feb 25, 2020
Feb 25, 2020
Feb 25, 2020
Apr 1, 2020
Mar 7, 2017
Aug 22, 2019
Aug 22, 2019
Feb 13, 2020
Aug 22, 2019

Repository files navigation

Lastuser

Lastuser has been merged into Funnel is no longer maintained a standalone app. This repository is archived. Historical notes follow:


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.