Giter VIP home page Giter VIP logo

spotseeker_server's Introduction

Build Status Coverage Status

SpaceScout Server

This is the server for the SpaceScout suite of applications. It stores space metadata and resources as well as provides services to the SpaceScout web and mobile apps.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Django == 1.4 (older versions untested)
  • A Python installation (2.6 or 2.7)
  • pip or easy_install
  • git
  • JPEG libraries from http://www.ijg.org/ (Optional, but PIL will not support JPEG images without it.)

Installing

Use pip to install the app as editable from GitHub:

pip install -e git+https://github.com/uw-it-aca/spotseeker_server.git#egg=spacescout-server

Enable the RemoteUserBackend:

MIDDLEWARE_CLASSES = (
    ...
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.RemoteUserMiddleware',
    ...
)

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.RemoteUserBackend',
)

Add spotseeker_server and oauth_provider to your INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    ...
    'oauth_provider',
    'spotseeker_server',
    'south',
    ...
)

Add the app to your project's urls.py:

urlpatterns = patterns('',
    ...
    url(r'^auth/', include('oauth_provider.urls')),
    url(r'^api/', include('spotseeker_server.urls')),
    ...
)

Additional settings:

MODULE can be one of 'all_ok' or 'oauth'. If using 'oauth', client applications will need an oauth key/secret pair. The 'all_ok' module is not suitable for production.

SPOTSEEKER_AUTH_MODULE = 'spotseeker_server.auth.MODULE'

A list or tuple of usernames allowed to use methods that modify server data (PUT, POST, DELETE.)

SPOTSEEKER_AUTH_ADMINS = []

Custom validation can be added by adding SpotForm and ExtendedInfoForm to org_forms and setting them here. (For example, SPOTSEEKER_SPOT_FORM could be default.DefaultSpotForm or org_forms.UWSpotForm , SPOTSEEKER_SPOTEXTENDEDINFO_FORM could be org_forms.UWSpotExtendedInfoForm or default.DefaultSpotExtendedInfoForm, and SPOTSEEKER_SEARCH_FILTERS could contain or org_filters.uw_search.Filter or org_filters.sample_search.Filter)

SPOTSEEKER_SPOT_FORM = 'spotseeker_server.org_forms.MODULE'
SPOTSEEKER_SPOTEXTENDEDINFO_FORM = 'spotseeker_server.org_forms.MODULE'
SPOTSEEKER_SEARCH_FILTERS = ('spotseeker_server.org_filters.MODULE', )

For additional settings, see [some page that doesn't exist.]

Create your database, and you can run the server.

python manage.py syncdb
python manage.py migrate
python manage.py runserver

You can also optionally create some sample spot data:

python manage.py create_sample_spots

Running the tests

python manage.py test spotseeker_server

Deployment

(To be completed.)

Built With

Contributing

Please read [CONTRIBUTING.md] for details on our code of conduct, and the process for submitting pull requests to us. (This has yet to be writtien.)

Versioning

For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

Copyright 2012-2016 UW Information Technology, University of Washington

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

List of settings

(To be moved to the wiki eventually.)

JSON_PRETTY_PRINT SPOTSEEKER_AUTH_ADMINS SPOTSEEKER_AUTH_MODULE SPOTSEEKER_SEARCH_FILTERS USER_EMAIL_DOMAIN

spotseeker_server's People

Contributors

abztrakt avatar vegitron avatar samolds avatar sbutler avatar ezturner avatar mattventura avatar haughar avatar cbessee avatar swansong avatar btb avatar paulinew avatar qnnwp avatar mingwd avatar mikeseibel avatar edthedev avatar devights avatar th3abhi97 avatar ajavidan avatar mpitcel avatar kumaradi avatar fanbata avatar jcomis avatar mmgionet avatar mstone121 avatar stephyma avatar yarncheckout avatar roycevanle avatar

Watchers

James Cloos avatar Andy Summers 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.