shibley / discgolfdiscs

a simple API of disc golf disc profiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disc Golf Discs

A simple API of disc golf disc profiles. Each disc has:

  • Manufacturer
  • Name
  • Speed
  • Glide
  • Turn
  • Fade
  • Diameter
  • Height
  • RimDepth
  • RimWidth

All flight ratings were collected via DiscSearcher and PDGA approved discs.

Deployed API

https://discgolfdiscs.herokuapp.com/discs

Endpoints:

all discs - /discs
individual disc - /discs/:id

Endpoints to be added

  • filter by manufacturer
  • filter by each flight rating
  • attach over/unstable tags to each disc

Technologies Used

  • Node.js
  • Mongoose
  • Express
  • Database: MongoDB
  • dotenv
  • cors

Disc Model

const DiscSchema = new mongoose.Schema({
	Manufacturer: String,
	Name: String,
	Speed: Number,
	Glide: Number,
	Turn: Number,
	Fade: Number,
	Diameter: Number,
	Height: Number,
	RimDepth: Number,
	RimWidth: Number,
})

Installation

  1. Fork and clone repo
  2. If you identify bugs, submit an issue on the Git repo. Please detail the bug in your issue.
  3. If you know how to fix it, feel free to note the methods you would use. You could also submit a pull request with suggested code to fix it.

About

a simple API of disc golf disc profiles


Languages

Language:JavaScript 100.0%