Giter Site home page Giter Site logo

rotten-client's Introduction

Rotten Potatos

Components v Pages

Even though both are going be constructed as components. I want to have a clear split (in terms of mental picture) between what we call a component and a page in this application

Pages & Routes

/ HomePage Page /login LoginPage Page /signup SignupPage Page /profile ProfilePage Page /movies MoviesPage Page /movies? SearchMovies Page /movies/add Add Movies Page /movies/:id/edit Edit Movies Page /movies/:id SingleMovies Page /:username SingleUserProfile Page NOT FOUND

Data necessary for each page

ALL OVER -> if logged in -> DELETE request for logout

/ -> user info (to check if you're logged in or not) // user from DB /login -> to be able to send POST request /signup -> to be able to send POST request /profile -> user info and be able to send PUT/PATCH, DELETE, or POST /movies -> a list of movies /movies? -> list of movies filtered /movies/add -> POST request to create movie /movies/:id/edit -> PUT request to update a single movie /movies/:id -> GET request to get single movie. POST request to create review. PUT request to edit a review /:username -> GET request to get single user info

Protected routes?

/ -> Doesnt have to be auth /login -> Doesnt have to be auth /signup -> Doesnt have to be auth /profile -> Has to be auth /movies & /movies? ->

  • To see list: No auth

/movies/:id ->

  • To see reviews: No auth
  • To edit review: Auth and have to be owner of the review
  • To add review: Auth needed
  • To delete review: Auth and have to be owner of the review /movies/:id/edit -> MAYBE: Add an admin user, and to edit you have to be admin /movies/add -> Need to be Auth. MAYBE later: add an admin user to add

/:username -> Dont have to be auth

rotten-client's People

Contributors

itstheandre avatar

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.