Git Product home page Git Product logo

identity-idp's Introduction

Build Status Code Climate Test Coverage

Identity-IdP (Upaya)

A proof-of-concept Identity Management System

Dependencies

Getting Started with Docker

We have a pre-built development environment made with Docker Compose.

  • On non-Linux systems this will involve installing Docker Toolbox (v1.10+) and starting a Docker Machine VM by launching the Docker Quickstart Terminal app.
  1. Copy the sample configuration files:

     $ bin/setup --docker
    
  2. Build/download the container images:

     $ docker-compose build
    
  3. Start the app:

     $ docker-compose up -d
    
  4. Setup the database(s):

     $ docker-compose run --rm web rake db:setup RAILS_ENV=development
    
     $ docker-compose run --rm web rake db:setup RAILS_ENV=test
    

Once the docker images are up and running, the app will be accessible at http://localhost:3000/. Email messages will be visible in MailCatcher at http://localhost:1080/.

  • On non-Linux platforms, localhost will need to be replaced with the IP address of your Docker Machine VM, which is 192.168.99.100 by default. When you launch the Docker Quickstart Terminal app on a Mac, it will tell you which machine and IP are in use:

    docker

More useful Docker commands:

  • Stop this running container: docker-compose stop
  • Stop the Docker Machine VM: docker-machine stop
  • Stop and delete the containers: docker-compose down
  • Open a shell in the web container: docker-compose run --rm web bash

See the Docker Compose docs for more information.

Getting Started Locally

  1. Make sure you have a working development environment with all the dependencies installed. On a Mac, the easiest way to set up a development environment is by running our Laptop script. The script will install all of this project's dependencies, except for libxmlsec1, which you can install with Homebrew:

     $ brew install libxmlsec1
    
  2. Make sure Postgres and Redis are running. For example, on OS X:

     $ brew services start redis postgres
    
  3. Run the following command to set up the environment:

     $ bin/setup
    

    This command copies sample configuration files, installs required gems and sets up the database.

  4. Run the app server with:

     $ foreman start
    

Running Tests

To run all the tests:

$ bundle exec rspec

See RSpec docs for more information.

Deploying

We currently run dev and qa environments at https://upaya-idp-dev.18f.gov and https://upaya-idp-qa.18f.gov. Core developers can deploy to those hosts with Capistrano using the following command:

cap <env/stage> deploy

You will need to provide a copy of your SSH public key and you may need to provide your IP address if you are not in a GSA building or on the GSA VPN. Post a message in the Slack channel if you need help.

More Information

Notice: This project is still in alpha.

Why 'Upaya'?

"skill in means" https://en.wikipedia.org/wiki/Upaya

identity-idp's People

Contributors

amoose avatar monfresh avatar sbc100 avatar jgrevich avatar brendansudol avatar diego- avatar awong-dev avatar

Watchers

Dexter Ogie-osahon avatar James Cloos 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.