Skip to content

Unicaronas/Unicaronas

Repository files navigation

Build Status

forthebadge

Unicaronas

This website serves 5 purposes:

  • Allow users to sign up to the service
  • Allow users to edit their preferences
  • Allow users to create and edit applications
  • Serve as an oauth2 authorization server for applications created by the users
  • Serve as the resource server for the API used by said applications

Requirements

  • Python 3.x
  • Django 2.x
  • Postgres >= 9
  • PostGIS
  • Redis

Preparations

You'll need an API key for the Geocoding API from Google

You'll also need API keys and/or secrets from the following APIs:

Finally, if you want to enable social sign-in, get OAuth2 credentials from Google, Facebook or Github

Installation

Clone the repo, set up your virtualenv and run pip install -r requirements.txt.

Then run python initialize.py and answer the questions.

Usage

After everything is set up, configure your superuser by running python manage.py createsuperuser.

Then run the app with ./run.sh and go to localhost:8000/admin/.

There you can configure your site at the Sites model and your social logins as social accounts model.

Done!

Deploying to Heroku

You can also deploy to Heroku

Deploy