Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Todo app example #16

Merged
merged 7 commits into from
Nov 29, 2018
Merged

Todo app example #16

merged 7 commits into from
Nov 29, 2018

Conversation

stankoua
Copy link
Collaborator

Pull Request Checklist

  • Have you read through the contributor guide?
  • Have you added tests for any changed functionality?

Purpose

This PR aim is to add an example so that newcomers could grasp more easily how the query monad could be use on a real project.

@stankoua stankoua self-assigned this May 21, 2018
@stankoua stankoua requested a review from cchantep May 21, 2018 22:18
@stankoua stankoua changed the base branch from master to task/play-sql-module May 21, 2018 22:19
case None => Right(())
}
)
_ <- SqlQueryT.liftQuery[ErrorOrResult, Unit](
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça serait bien d'avoir des exemples où les résultats servent (sont pas discarded), là c'est jamais le cas du coup ça illustre pas trop les avantages de composition.

environment:
PGDATA: data
ports:
- 5432:5432
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si la DB ne sert que à l'autre container, pas besoin d'exposer le port, à condition de mettre un link approprié

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non la todo app tape directement dessus. En plus adminer ne me convainc pas vraiment, je vais l'enlever je pense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si c'est accès par un autre container, pas besoin d'exposer les ports sur l'hôte


private def builder[B](
bodyParser: BodyParser[B]
): ActionBuilder[ConnectedUserRequest, B] =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il y a t'il réellement besoin d'un ActionBuilder pour ça ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je voulais éviter un empilement d'actions sur les endpoints.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Une simple composition ?

@stankoua stankoua changed the base branch from task/play-sql-module to master November 29, 2018 06:56
@stankoua stankoua merged commit 9fc2b2a into master Nov 29, 2018
@stankoua stankoua deleted the task/todo-app-example branch November 29, 2018 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants