Coder Social home page Coder Social logo

imperat / adfs_managers Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 6.0 4.55 MB

This is site (web-app) to manage teams and statistic for ADFS

Home Page: https://adf-saratov.ru/logic

License: Apache License 2.0

Python 30.71% HTML 41.54% CSS 16.85% JavaScript 10.65% Shell 0.16% C 0.09%
django football python react webpack

adfs_managers's People

Contributors

imperat avatar planemar avatar skorynskaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adfs_managers's Issues

Thinking about night mode

body {
background-color: black !important;
}

h1 {
color: #a6a6a6 !important;
}
h2 {
color: #a6a6a6 !important;
}
h3 {
color: #a6a6a6 !important;
}
h4 {
color: #a6a6a6 !important;
}
h5 {
color: #a6a6a6 !important;
}

.navbar {
margin-left: 0px !important;
margin-right: 0px !important;
border-radius: 0px !important;
border-color: #6b6b6b !important;
}

input {
background-color: #6b6b6b !important;
border-radius: 0px !important;
}

button {
border-radius: 0px !important;
}

Start using readthedocs.org for making documentation

We need whole documentation for peoples from all world who would like to use this application in own football leagues and documentation for developers (rest api describtion for example).
It will be awesome if this application support organize tournaments in Sydney or Rio-de-janeiro, right?

Implement panel with current matches

screenshot 88

Need to show in this place info about today's, yesterdays and next matches across all leagues. Implement it like in sports.ru and championat.com sites.

Ability to reserve stadions time (api)

It's needed check and develop if some of endpoints are not existing for stadions reservation implementation. Needs check to:

  • Stadions list (GET)
  • Teams list (GET)
  • get the list of taken times for concrete stadion
  • take time for the stadion
  • delete taken time

League table adjustments

Need to improve this teams table:
screenshot 92

  1. Add header
  2. Sort teams by adfs rule (russian):
    При равенстве команд по набранным очкам, сортировать их по результатам личных встреч, потом по разнице мячей, а потом по забитым голам.

Implement permissions model

Make ability to create roles and assign users to one or more roles.
Implement different permissions for it. For example:
-Administrator (can see all pages)
-Tester (like admin)

  • Captain of team (see common info, take the time on the stadiums)
    -other.. Need to think about this.
    Also implement permission model for users. For example one user can have access to edit only one team, other user has access to edit one league and others.
    This task not only thinking about business logic for it. Also it'll be helpful to have different advice's which django-based solution we need to use for it or (probably) it's more convenient to write our own solution?
    Leave all suggestions in the comments, please!

Design REST API for web/mobile clients

Need to design and develop REST API for third party clients.

API design must be a resource-oriented and consists of resources, collections and URLs.

  • A resource has data, gets nested, and there are methods that operate against it
  • A group of resources is called a collection.
  • URL identifies the online location of resource or collection.

URL Structure

   /api/v1/users
  • api - base element
  • v1 - API version (for legacy clients)
  • users and other - resources, collections and verbs

CRUD using HTTP methods

GET: To retrieve a representation of a resource.

POST: To create new resources and sub-resources

PUT: To update existing resources

PATCH: To update existing resources. It only updates the fields that were supplied, leaving the others alone

DELETE: To delete existing resources

Status codes

  • 200 OK response represents success for GET, PUT or POST requests.
  • 201 Created for when new instance is created. Creating a new instance, using POST method returns 201 status code.
  • 304 Not Modified response is to minimize information transfer when the recipient already has cached representations
  • 400 Bad Request for when the request was not processed, as the server could not understand what the client is asking for
  • 401 Unauthorized for when the request lacks valid credentials and it should re-request with the required credentials.
  • 403 Forbidden means the server understood the request but refuses to authorize it.
  • 404 Not Found indicates that the requested resource was not found.
  • 500 Internal Server Error indicates that the request is valid, but the server could not fulfil it due to some unexpected condition.

Profile page adjustment

Need investigate to good-writing profile page implementation and register modal dialog.
Probably add info about social networks links, telephone number, team and according player instance.

It's good is to store last user login and show it.

Implement it with modern js libraries: react probably..

Also it will be fantastic - to catch avatar from user web camera.

Need to support mobile devices

Need a lot of preparation with media css queries for compatibility with mobile devices. Also it will be greate idea if we can additional features in only full-screen mode.
Good idea also - add media queries for monochrome e-books. If we would to populate this project around whole world, it be very useful!

Rewrite javascript code in templates/teamlogic/league.html

According to best practices we need to transfer this javascript code to separate file. Also it will be perfect if we can:

  1. Write this code with d3.js library more elegant
  2. Use webpack for bilding it in separate file
  3. Add d3.js as npm dependency

Ability to reserve stadions time (front-end)

Two, three or many teams can plan matches in the same place and in the same time.
Now captains of teams make double checks social network vk to avoid time conflics on stadions.
I think it can be useful if we implement dashboard for reserving time on stadions like we reserve places in cinema.
Need to think about it and implement only for logged in users.

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.