Code Monkey home page Code Monkey logo

ttcompanion's People

Contributors

skuzzle-uk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ttcompanion's Issues

Finish seeding the database

DBContext file located as below needs to have the rest of the BB players, skills and special rules added to it.

TTCompanion.API/FantasyFootball/DBContexts/DBContext.cs

Once added you can run

add-migrations FinalSeed

from the Package Manager Console of Visual Studio to create the final seed migration. The next time the api is run, the database migration will run and the db will be filled with all of the data.

There is a summary in the file to explain how to add the data, following is the summary and an example of 2 skills already seeded

/// <summary>
/// Seed by creating a var of entity type and then adding var to .HasData of modeBuilder.Entity<Type>
/// </summary>

//Add the var here as a new skill with Id and Name params
var dodge = new Skill(1, "Dodge");
var defensive = new Skill(2, "Defensive");

//each var is added into the .HasData comma separated and on separate lines as below
modelBuilder.Entity<Skill>()
     .HasMany(s => s.Players)
     .WithMany(p => p.Skills)
     .UsingEntity(j => j
         .ToTable("PlayerSkill"))
         .HasData(
             dodge,
             defensive
        );

Add authentication to TTCompanion.API

Require sign-up and authentication for access to API.
We will need various levels of user:

Administrator,
Consumer,
etc

Users should have access to create/edit their own races, players etc and be able to share these to other users but they should not be able to edit/delete other users items or the original seed data.

This may be better split into separate tasks in the future

Create new Fantasy Football application

Create a new project Fantasy Football Companion to run on and Windows, Android and possibly iOS.

This project will consume the TTCompanion.API/FantasyFootball endpoints.

Will flesh out later

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.