GithubHelp home page GithubHelp logo

reacnd-readable's Introduction

uDacity React ND - Readable

Um agregador de conteúdo, semelhante ao reddit ou hackernews, em que é possível postar conteúdo, comentar e votar positiva/negativamente para classificar postagens e comentários

Instalação

Clone este repositório e rode npm install nas pastas api-server e frontend

Estrutura do App

Views

Home

* Rota -> /
* Renderiza Dashboard

Categoria

* Rota -> /:categoria
* Renderiza o Dashboard filtrado pela categoria

Post

* Rota -> /view/:postId
* Renderiza
	- Componente Post
	- Lista de comentários
	- Novo comentário

Criar/Editar postagem

* Rota -> /p/{:postId}
* Renderiza form de nova postagem
	- SE postId, popular com dados da postagem

Componentes

Dashboard

* Lista com as categorias disponíveis OK
* Postagens ordenadas pela pontuação (default) OK
	- Se for passada uma categoria, filtra os resultados OK
* Controle para alterar forma de ordenação entre pontuação e data OK
* Controle para adicionar novas postagens OK
* Ações OK
	- GET _categories OK
	- GET _posts OK

Postagem

* Navegação para a tela do post OK
* Mostra dados do autor OK
	- Username OK
* Mostra dados do post OK
	- Número de comentários OK
	- Título OK
	- Texto OK
	- Data legível OK
* Controles para votar OK
* Editar OK
* Remover OK
* Form para comentários OK
* Ações OK
	- GET _comments from _posts OK
	- GET _post from _posts OK
		- GET _score from _post OK
		- SET _score in _post OK
		- GET _comments from _post OK
		- REM _post from posts OK
	- GET _authedUser OK
		- SET _canEdit from _author _from post OK

Comentário

* Mostra dados do autor OK
	- Username OK
* Mostra dados do post OK
	- Texto OK
	- Data legível OK
* Controles para votar OK
* Editar OK
* Remover OK
* Ações OK
	- GET _comment from _comment OK
		- GET _score from _comment OK
		- SET _score from _comment OK
		- REM _comment from comments OK
	- GET _authedUser OK
		- SET _canEdit from _author _from comment OK

Forms

* Precisam ter o usuário logado OK
* Enviam objetos para o servidor OK
* Se receberem um `id`, populam os campos OK
* Post OK
	- Título OK
	- Texto OK
	- Categoria OK
* Comentário OK
	- Texto OK
* Ações OK
	- GET _obj from _objList OK
	- POST _obj in _objList OK

Controles de voto

* Mostra pontuação OK
* Ações OK
	- GET _score from _post OK
	- SET _score in _post OK

Store

Posts

id: String
timestamp: Integer
title: String
body: String
author: authorId
category: String
voteScore: Integer
deleted: Boolean

Comments

id: String
parentId: String
timestamp: Integer
body: String
author: authorId
voteScore: Integer
deleted: Boolean
parentDeleted: Boolean

Categorias

* [strings]

Pacotes

* react
* redux
* react-redux
* react-redux-loading
* react-router-dom
* prop-types

Fuxo

+->-ação->-redutor->-UI-+
|                       |
+-----<-------<-------<-+

Fixes

* Click pra upvote não pode abrir o post
* Estilo do post pra saber o que acessa a página e o que não
* Ordenação de posts tá estranha
* Largura dos posts !== novo post

reacnd-readable's People

Contributors

lucas-nextt avatar

Watchers

Piteco 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.