Coder Social home page Coder Social logo

snc-server-go's Introduction

Development Setup

  1. Install and setup Go 1.9.2+
  2. Install Go's dep tool (go get -u github.com/golang/dep/cmd/dep)
  3. Run dep ensure from inside this repository to fetch the dependencies
  4. Run go install
  5. Run the produced executable

Accessing the API

The SNC API is currently hosted on a Heroku hobby plan.

snc-server-go's People

Contributors

thomas-bio avatar thomaspaulin avatar

Watchers

 avatar  avatar

snc-server-go's Issues

Implement paging

Limit the number of items that get returned by the server. Support pageSize and pageOffset

Add dummy data

Add some dummy data to the database so the clients can actually have something return and be usable and testable with real data.

Fix response codes

As of now the HTTP response codes are almost meaningless. For example: you can POST data of an invalid format and it will say it is 200 OK but nothing will have happened. In this case it should be a 400 Bad Request at least.

Hide DeletedAt

It is only set when an item was deleted in which case the item should not be shown.

Add goals endpoint

Add a /goals endpoint to fetch goals. Don't link them up the matches yet.

Link goals to matches

Link the goals up to matches through a join table or similar (creating a view for gorm to use which has all the joins set up).

Add unique indexes as gorm notation

Divisions

  • Name

Matches

  • Date, Away, and Home together

Rinks

  • Name

Teams

  • Name
  • I considered name and division together but opted to say name is unique because it will simplify things and I've seen no example thus far of teams sharing a name across divisions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.