Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Auction

A token based api for an Auction system.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development.

Prerequisites

Things you need to install the project.

Postgres 	>= 12.14
Ruby 		== 3.2.0
Rails		== 7.0.4

Guide to install:

Installing and Running

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!

Endpoints

https://documenter.getpostman.com/view/25778360/2s935sohZ2

Steps to use

  1. Create an user
  2. Copy your generated token
  3. Place a bid (paste your token in authoriztion header)
  4. Check highest bid so far

Author

Murilo Romeo - Ruby on Rails developer - muromeo1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages