Coder Social home page Coder Social logo

etrain's People

Contributors

kelp-chip avatar rectheworld avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kelp-chip

etrain's Issues

Create Route to get people based on variables cohort relationship, and endorsed status

Given a cohort Id and a relationship, return the target people who meet those conditions.

Will be used to sort target people by groups in the Welcome Page tab.

Update:

Decided to reuse the /cohort/?name= to return the names of the senior and junior cohorts because the response from the connections looks like:

    {
        "id": 7,
        "first_name": "Ren",
        "last_name": "C'deBaca",
        "linkedin": "ren-c-debaca-663b7920",
        "cohort_id": 2,
        "num_connections": 50
    },

so we'l be able to filter client side.

Create Ability For New Users to Join

When a new User comes to the train and enters in their linkedin, if the linked in is not recognized the page will not take the user to a sign up page.

Related but likely not the root cause, the endpoint /person/create does not work.

Example of Failed Endpoint

curl --location --request POST 'http://localhost:3000/person/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "linkedin": "ren-c-debaca-663b7920",
    "first_name": "Big",
    "last_name": "Head",
    "cohort": "HRR50"
}'

Create Route to return all the endorsed people

  1. Create a route that given a user_id will return all the people that person has endorsed.

Example route where the id of the user is 7

/connections/endorsed/?id=7
  1. On Client side create an API helper to call this function

Create a Corhort WorkFlow

Create a Workflow for adding a new cohort

  1. A New User Joins eTrain
  2. The enters a new Cohort name that is not in the DB
  3. User gets some additional fields to enter the name of the new cohort
  4. User will have dropdown to pick junior cohort
  5. User will have dropdown to pick senior cohort
  6. Junior will have select the start date of the cohort
  7. User will Be able to submit their data and be taken to their welcome page.

ToDo

  • Update the cohort controller (getCohortId) and people controller (createPerson) so that when a unrecognized cohort name is received, a response is sent to the front end that a new cohort entry is needed.
  • The user will not be created till the cohort is created
  • Create New Fields for creating a cohort on the create user page

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.