Giter Club home page Giter Club logo

footballgather-ws's Introduction

Football Gather - Server Side

Vapor 4 Swift 5.2 Xcode 11.6

FootballGather is a demo project for friends to get together and play football matches as quick as possible. My intention is to to try out different iOS Architecture Patterns and use server side Swift (Vapor this time).

This repo contains the server side logic. For the iOS version, please check Football Gather - iOS Side.

Features

  • Ability to add players
  • Set countdown timer for matches
  • Use the application in offline mode
  • Persist players

TODOs

  • Finish the implementation of the web services API
  • Nice to have basic access authentication

Database Structure

FootballGather-db-diagram

API

UserController

  • GET /api/users - Gets the list of users
  • GET /api/users/{userId} - Gets the specified user by its id
  • POST /api/users - Creates a new user
  • POST /api/users/login - Logins a user and returns the token
  • DELETE /api/users - Deletes the logged in user

PlayerController

  • POST /api/players - Creates a new player
  • DELETE /api/players/{playerId} - Deletes a player by its id
  • PUT /api/players/{playerId} - Updates a player by its id
  • GET /api/players/{playerId}/gathers - Gets the list of gathers for the player
  • GET /api/players - Gets the list of players

GatherController

  • GET /api/gathers - Gets the list of gathers
  • POST /api/gathers - Creates a new gather
  • DELETE /api/gathers/{gatherId} - Deletes a gather by its id
  • PUT /api/gathers/{gatherId} - Updates a gather by its id
  • POST /api/gathers/{gatherId}/players/{playerId} - Adds a player to a gather
  • GET /api/gathers/{gatherId}/players - Gets the list of players in the gather

Author

You can reach out to me @radude89 or find me on Stack Overflow.

footballgather-ws's People

Contributors

radude89 avatar

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.