GithubHelp home page GithubHelp logo

nonio's People

Contributors

jjcm avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

atulfp

nonio's Issues

Create basic cross-domain example requests with and without auth.

The very basic first step. There should be a single endpoint available:

/posts/:url

This should return a block of json detailing all of the things necessary for a request for a specific post:

{
  "title": "test post", 
  "OC": true, 
  "url": "non.io/this_is_crazy", 
  "user": {
    "username": "wombodombo",
    "avatar": "img.non.io/avatars/wombodomo.png"
  },
  "thumbnail": "img.non.io/thumbnails/f3c34da.jpg",
  "score": 148,
  "grade": null,
  "date": "2018-02-14 8:43pm",
  "content": "img.non.io/fullres/this_is_crazy.jpg",
  "type": "image",
  "tags": [
    {
      "tag": "funny",
      "upvotes": 92,
      "downvotes": 0,
      "date": "2018-02-14 8:43pm"
    },
    {
      "tag": "meme",
      "upvotes": 38,
      "downvotes": 0,
      "date": "2018-02-14 10:44pm"
    },
    {
      "tag": "image",
      "upvotes": 18,
      "downvotes": 0,
      "date": "2018-02-14 10:44pm"
    }
}

The response can be static for this version, but it should be accessible from https://non.io/*

Upvote post

Backend tasks

  • Add entry into the user's upvote history for each tag they upvoted on the post.
  • add a reference for the author that the user upvoted them so money can be distributed at the end of the month
  • increment the amount of upvotes for the particular post for the tag(s) that were upvoted
  • add ability to remove upvotes from tags

Frontend tasks

  • Upvote UI and POST logic for the upvote
  • Page showing the things the user has upvoted that month
  • Ability to cancel upvotes

Create new tag

Ability to create a new tag. This should register the user who created it as well. In the future I may have a moderation system, so I want to keep reference of who created each tag.

Backend tasks

  • working API endpoint for creating new tags

Frontend tasks

  • Tag creation flow

POC of an authenticated request

When a user requests
/posts

The backend should check and see if the request was made with a valid JWT. If not, it should respond with a simple

401 unauthorized

If the JWT is valid, it should respond with a list of posts.

``
{
posts: [
{
"title": "test post",
"OC": true,
"url": "non.io/this_is_crazy",
"user": {
"username": "wombodombo",
"avatar": "img.non.io/avatars/wombodomo.png"
},
"thumbnail": "img.non.io/thumbnails/f3c34da.jpg",
"score": 148,
"grade": null,
"date": "2018-02-14 8:43pm",
"content": "img.non.io/fullres/this_is_crazy.jpg",
"type": "image",
"tags": [
{
"tag": "funny",
"upvotes": 92,
"downvotes": 0,
"date": "2018-02-14 8:43pm"
},
{
"tag": "meme",
"upvotes": 38,
"downvotes": 0,
"date": "2018-02-14 10:44pm"
},
{
"tag": "image",
"upvotes": 18,
"downvotes": 0,
"date": "2018-02-14 10:44pm"
}
]
},
{
"title": "So and so gets elected",
"OC": true,
"url": "non.io/So and so gets elected",
"user": {
"username": "mrWilson",
"avatar": "img.non.io/avatars/mrWilson.png"
},
"thumbnail": "img.non.io/thumbnails/3d8efa5.jpg",
"score": 132,
"grade": null,
"date": "2018-02-14 10:02pm",
"content": "Some longform writing content blah blah blah...",
"type": "blog",
"tags": [
{
"tag": "news",
"upvotes": 92,
"downvotes": 0,
"date": "2018-02-14 10:02pm"
},
{
"tag": "politics",
"upvotes": 38,
"downvotes": 0,
"date": "2018-02-14 10:44pm"
}
]
},

...etc

]
}
``

This can be a static response for the purposes of this issue.

Create user db model

Will be required for login purposes and for stripe integration when matching users to a specific plan.

Create new post

First type will be a simple text post. Need both the backend logic as well as the frontend flow.

Create video upload pipeline for a new video post

We'll have to figure out how we want to handle re-encoding once we upload. I may use something like zencoder for now as it'll be easier to just handoff to. Later on I can do something more custom.

Admin mode

Backend features

  • Addition to the user model of an admin boolean
  • Delete post API endpoint accessible if admin == true

Frontend features

  • Delete post link per post
  • Admin flair on username

XSS attack vector

Reporter: daniel

<a onmouseover="alert(document.cookie)">xxs link</a>

<IMG SRC= onmouseover="alert('xxs')">

xss that work without mouseover:

User profile management

Backend tasks

  • Change subscription plan
  • Change password
  • Change payment info
  • Change avatar
  • Change username

Frontend tasks

  • Change subscription plan flow
  • Change password flow
  • Change payment info flow
  • Change avatar flow
  • Change username flow

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.