GithubHelp home page GithubHelp logo

julian-bio0404 / gaman Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.61 MB

Gaman principal repo. A web app that conect to athletes with sponsors for their sponsorship, as well as helps to the people interested in practicing some sport, find those available in their local area.

Dockerfile 0.75% Shell 1.71% Python 97.32% HTML 0.22%

gaman's Introduction

Gaman

Gaman Rest Api. A web app that conect to athletes with sponsors for their sponsorship, as well as helps to the people interested in practicing some sport, find those available in their local area.

Run

Required software:

  • Docker

to run the project, run:

docker-compose -f local.yml build
docker-compose -f local.yml up

to fill database, run (optional):

docker-compose -f local.yml run --rm django bash
cd compose/local/django/
/fill-db

to create a superuser, run:

docker-compose -f local.yml run --rm django createsuperuser

to run the tests, on other console, run:

  • All tests
    docker-compose -f local.yml run --rm django coverage run manage.py test -v 2
  • Test of a app
    docker-compose -f local.yml run --rm django coverage run manage.py test <app-dir>.tests -v 2
  • Tests of a app sub-module
      docker-compose -f local.yml run --rm django coverage run manage.py test <app-dir>.tests.<file-name> -v 2
  • Tests of a sub-module class
      docker-compose -f local.yml run --rm django coverage run manage.py test <app-dir>.tests.<file-name>.<Test-class> -v 2
  • Specific test
      docker-compose -f local.yml run --rm django coverage run manage.py test <app-dir>.tests.<file-name>.<Test-class>.<test_method> -v 2

to see test coverage, run:

docker-compose -f local.yml run --rm django coverage html

Features

Users

  • User
    • Gaman API has redis and celery services for response asynch for:
      • User sign-Up with sending a token for email confirmation
      • Refresh token for email confirmation
      • Restore password with sending a token to user email
      • Updating email with sending a token to user new email
    • Sign-Up filling in the fields such as last name, first name, username, telephone number, and choosing a role as an athlete, sponsor or coach
    • Login with email and password
    • User detail
    • User data update
  • Profile
    • Profile detail
    • Update or partial update of profile data as about, birth date, sport, country, public (true or false), web site and social link
    • Follow or unfollow to a club, brand or other user. If the profile is private, a follow request is sent
    • List followers and following
    • List user's sponsorships
    • List club's invitations
  • Follow request
    • Send, confirm or delete follow-up request
    • follow-up request detail
    • List unconfirmed follow-up requests
    • Follow-up to brands, clubs or others users

Posts

  • Post
    • Create a Post with a description, pictures, videos, location, feeling, tag users and choosing privacy between public or private, as a user, club or brand.
    • Post detail
    • Update or delete a post,
    • React or share a post of a user
    • List posts of followed
    • List post's reactions (all, likes, loves, angries, sad and curious, haha)
  • Comment
    • Create, update or delete a comment on post
    • Comment detail
    • List post's comments. The comments will be listed in order of the number of reactions
    • React to a comment
    • List comment's reactions
    • Reply to a comment
    • List comment's replies. This replies will be listed in chronological order

Sponsorships

  • Sponsorship
    • Create a sponsorship to an athlete or club. Only user with sponsor role and profile data comleted has access to this action
    • Sponsorship detail
    • Rating a sponsorship. Only the individual athletes sponsored or athletes and coach that belong to a club sponsored has access to this action.
    • Update or delete a rating
    • List ratings of a sponsorship
  • Brand
    • Create a brand filling the fields such as slugname, about, photo, cover photo and official web
    • Brand detail
    • List brands
    • Update or Delete a brand
    • List brand's posts
    • List brand's followers

Sports

  • Leagues
    • List registered leagues
    • League detail
  • Clubs
    • Create a club. Only user with trainer or League president role has access to this action
    • Club detail
    • Update club's data
    • List club's posts
    • List club's sponsorships
    • List club's followers
  • Members
    • List club's members
    • Create and confirm invitation
    • Detail, deactive, reactive or expel a member
  • Events
    • Create a Sport event with title, description, photo, start date, finish date, and a geolocation. The event author can be an user, a brand or a club. This feature determine the country, state, city and place name from the geolocation provided, using a third party api of geolocation, available on: Api HERE
    • Detail, update or delete a SportEvent
    • List events filtering by country, state or city
    • Mark go to an event
    • List assistants of a event

Documentation

To see the documentation for the Gaman REST API and see how to play with it, you can:

Founders

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.