Skip to content

Responsible for running the database and exposing the API endpoints used by the Tea Subscription frontend

Notifications You must be signed in to change notification settings

JarenGarman/tea_subscription_api

Repository files navigation

Tea Subscription API

Overview

Welcome to the backend repo for the Tea Subscription website! This repo holds the code responsible for running the database and exposing the API endpoints described in the OpenAPI Documentation. Also be sure to check out the frontend repo!

Notable Technologies

  • Ruby
  • Rails
  • Postgres (PostgreSQL)
  • RSpec
  • factory_bot
  • simplecov

Running Locally

Requirements

  • Ruby 3.2.2
  • bundler gem: gem install bundler
  • Postgres

Setup Steps

  1. Clone the repo to your machine: git clone https://github.com/JarenGarman/tea_subscription_api.git
  2. Open the directory: cd tea_subscription_api
  3. Install required gems: bundler install
  4. Setup the database: bundle exec rails db:{create,migrate,seed}

Running Test Suite

  • To run the entire suite: bundle exec rake
  • To run only the model tests: bundle exec rspec spec/models
  • To run only the request tests: bundle exec rspec spec/requests

Database Design

DBDiagram Schema

API Endpoints

To view the available endpoints for this API, please visit the OpenAPI Documentation. There you will find the endpoint definitions, required formatting for requests, and example requests and responses (including possible errors and messages).

Contributors

Jaren Garman

About

Responsible for running the database and exposing the API endpoints used by the Tea Subscription frontend

Topics

Resources

Stars

Watchers

Forks

Languages