Skip to content

pantaubersama/Auth

Repository files navigation

README

Pantau Bersama Auth

Setup

  • git clone git@github.com:pantaubersama/Auth.git
  • setup your database (postgresql)
  • create env variable files (.env.development , .env.test) from env.example
  • $ bundle install
  • $ rails db:create db:migrate seed:migrate
  • $ rails s -p 4000
  • go to http://localhost:4000/doc

HTTP Authentication

Check it out in your .env.development

Username : admin
Password : admin

make sure all success installed

Test

  • run rake db:test:prepare
  • run rake seed:migrate MIGRATION=20190127053507_seed_default_user.rb RAILS_ENV=test
  • run rspec