Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 1.25 KB

File metadata and controls

32 lines (31 loc) · 1.25 KB

Authentication

Api for an authentication service that allows for the registration/authentication of users and their retrieval.

Build Status Maintainability

Getting Started

Prerequisites

  • Ruby 2.3
  • Rails 5.1
  • Postgres
  • An RSA key pair

Installation

Environment Variables

dot-env gem is installed and so you can set up all your environment variables in a .env file at the root of the project. The following environment variables need to be set:

DB_USER = username for you DB
DB_PWD = password for your DB user
RSA_PUBLIC_KEY = Your public RSA key (don't worry about \n, they are handled)
RSA_PRIVATE_KEY = Your RSA private key (don't worry about \n, they are handled)

The production environment only needs RSA_PRIVATE_KEY and RSA_PUBLIC_KEY set up.

Database

$ bundle exec rails db:setup

Documentation

http://auth-mservice.herokuapp.com/api_docs/swagger#/Authentication

Running the Tests

bundle exec rspec

Author