Api for an authentication service that allows for the registration/authentication of users and their retrieval.
- Ruby 2.3
- Rails 5.1
- Postgres
- An RSA key pair
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.
$ bundle exec rails db:setup
http://auth-mservice.herokuapp.com/api_docs/swagger#/Authentication
bundle exec rspec
- Name: Eran Peer
- Email: eran.peer79@gmail.com