A token based api for an Auction system.
These instructions will get you a copy of the project up and running on your local machine for development.
Things you need to install the project.
Postgres >= 12.14
Ruby == 3.2.0
Rails == 7.0.4
How to setup the environment:
1 - Clone the project
git clone git@github.com:muromeo1/auction-interview.git
2 - Change config/database.yml to your postgres username and password
default: &default
adapter: postgresql
encoding: unicode
host: localhost
username: postgres
password: postgres
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>3 - Setup database
rails db:create
rails db:migrate
4 - Run the project
rails s
Good to go!
https://documenter.getpostman.com/view/25778360/2s935sohZ2
- Create an user
- Copy your generated token
- Place a bid (paste your token in authoriztion header)
- Check highest bid so far
Murilo Romeo - Ruby on Rails developer - muromeo1