Skip to content

Commit

Permalink
implemented blog
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka authored and dg committed Apr 12, 2019
1 parent 6bdfb12 commit 2750df1
Show file tree
Hide file tree
Showing 12 changed files with 350 additions and 33 deletions.
5 changes: 5 additions & 0 deletions app/config/common.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ session:
expiration: 14 days


security:
users:
admin: secret # user 'admin', password 'secret'


services:
router: App\Router\RouterFactory::createRouter
17 changes: 17 additions & 0 deletions app/presenters/HomepagePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,21 @@

final class HomepagePresenter extends Nette\Application\UI\Presenter
{
/** @var Nette\Database\Context */
private $database;


public function __construct(Nette\Database\Context $database)
{
$this->database = $database;
}


public function renderDefault(int $page = 1): void
{
$this->template->page = $page;
$this->template->posts = $this->database->table('posts')
->order('created_at DESC')
->page($page, 5);
}
}
122 changes: 122 additions & 0 deletions app/presenters/PostPresenter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?php

declare(strict_types=1);

namespace App\Presenters;

use Nette;
use Nette\Application\UI\Form;


final class PostPresenter extends Nette\Application\UI\Presenter
{
/** @var Nette\Database\Context */
private $database;


public function __construct(Nette\Database\Context $database)
{
$this->database = $database;
}


public function renderShow(int $postId): void
{
$post = $this->database->table('posts')->get($postId);
if (!$post) {
$this->error('Post not found');
}

$this->template->post = $post;
$this->template->comments = $post->related('comment')->order('created_at');
}


protected function createComponentCommentForm(): Form
{
$form = new Form;
$form->addText('name', 'Your name:')
->setRequired();

$form->addEmail('email', 'Email:');

$form->addTextArea('content', 'Comment:')
->setRequired();

$form->addSubmit('send', 'Publish comment');
$form->onSuccess[] = [$this, 'commentFormSucceeded'];

return $form;
}


public function commentFormSucceeded(Form $form, \stdClass $values): void
{
$this->database->table('comments')->insert([
'post_id' => $this->getParameter('postId'),
'name' => $values->name,
'email' => $values->email,
'content' => $values->content,
]);

$this->flashMessage('Thank you for your comment', 'success');
$this->redirect('this');
}


public function actionCreate(): void
{
if (!$this->getUser()->isLoggedIn()) {
$this->redirect('Sign:in');
}
}


public function actionEdit(int $postId): void
{
if (!$this->getUser()->isLoggedIn()) {
$this->redirect('Sign:in');
}

$post = $this->database->table('posts')->get($postId);
if (!$post) {
$this->error('Post not found');
}
$this['postForm']->setDefaults($post->toArray());
}


protected function createComponentPostForm(): Form
{
if (!$this->getUser()->isLoggedIn()) {
$this->error('You need to log in to create or edit posts');
}

$form = new Form;
$form->addText('title', 'Title:')
->setRequired();
$form->addTextArea('content', 'Content:')
->setRequired();

$form->addSubmit('send', 'Save and publish');
$form->onSuccess[] = [$this, 'postFormSucceeded'];

return $form;
}


public function postFormSucceeded(Form $form, \stdClass $values): void
{
$postId = $this->getParameter('postId');

if ($postId) {
$post = $this->database->table('posts')->get($postId);
$post->update($values);
} else {
$post = $this->database->table('posts')->insert($values);
}

$this->flashMessage('Post was published', 'success');
$this->redirect('show', $post->id);
}
}
51 changes: 51 additions & 0 deletions app/presenters/SignPresenter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

declare(strict_types=1);

namespace App\Presenters;

use Nette;
use Nette\Application\UI\Form;


final class SignPresenter extends Nette\Application\UI\Presenter
{
/**
* Sign-in form factory.
*/
protected function createComponentSignInForm(): Form
{
$form = new Form;
$form->addText('username', 'Username:')
->setRequired('Please enter your username.');

$form->addPassword('password', 'Password:')
->setRequired('Please enter your password.');

$form->addSubmit('send', 'Sign in');

// call method signInFormSucceeded() on success
$form->onSuccess[] = [$this, 'signInFormSucceeded'];
return $form;
}


public function signInFormSucceeded(Form $form, \stdClass $values): void
{
try {
$this->getUser()->login($values->username, $values->password);
$this->redirect('Homepage:');

} catch (Nette\Security\AuthenticationException $e) {
$form->addError('Incorrect username or password.');
}
}


public function actionOut(): void
{
$this->getUser()->logout();
$this->flashMessage('You have been signed out.');
$this->redirect('Homepage:');
}
}
16 changes: 15 additions & 1 deletion app/presenters/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,28 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">

<title>{ifset title}{include title|stripHtml} | {/ifset}Nette Web</title>
<title>{ifset title}{include title|stripHtml} | {/ifset}Nette Framework Micro-blog</title>

<link rel="stylesheet" href="{$basePath}/css/style.css">
</head>

<body>
<ul class="navig">
<li><a n:href="Homepage:">Homepage</a></li>
{block navig}{/block}
{if $user->loggedIn}
<li><a n:href="Sign:out">Sign out</a></li>
{else}
<li><a n:href="Sign:in">Sign in</a></li>
{/if}
</ul>

<div n:foreach="$flashes as $flash" n:class="flash, $flash->type">{$flash->message}</div>

{include content}

<p class="footer">This is a <a href="http://doc.nette.org/quickstart">Nette Framework Quick Start</a>.</p>

{block scripts}
<script src="https://nette.github.io/resources/js/3/netteForms.min.js"></script>
{/block}
Expand Down
45 changes: 13 additions & 32 deletions app/presenters/templates/Homepage/default.latte
Original file line number Diff line number Diff line change
@@ -1,38 +1,19 @@
{* This is the welcome page, you can delete it *}
{block navig}
<li n:if="$user->loggedIn"><a n:href="Post:create">Write new post</a></li>
{/block}

{block content}
<div id="banner">
<h1 n:block=title>Congratulations!</h1>
</div>
<h1 n:block="title">My awesome blog</h1>

<div id="content">
<h2>You have successfully created your <a href="https://nette.org">Nette</a> Web project.</h2>
<div n:foreach="$posts as $post" class="post">
<div class="date">{$post->created_at|date:'F j, Y'}</div>

<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABVCAYAAAD0bJKxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACudJREFUeNrMXG1sFMcZfvfu7ECw7+xDaQL+AApE1B+EJLapSNs4QIhtVWpSVTJNVIkqatX+II1apf8SoTZSq/KHiv5oqRolVaUS5UfgD04qtRAcUGipSrDdjxjHxDa0xOIcDBiMOU9nZj9udndmZ2Y/zjen0d7uzs7u+8z7Pu87H7sGCFLvrqfWGABbwMyBqfW5C5BrvhFYBkFFpi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qvc4wCv/XDmhAc+15bUmeYJzcmi4ynBcVkdPOB57Y04HY8wr1UtKlzvnDOs6FcmUCrgWNgt+98LDvuQixwBFz3nZFtRPUIgw4ASJHBKsB+UvfcAjvCybH/gxGD2Fz3gpphjwNn3BbcZibmkJMdk/1MKZhekMSigpXn/FxXKiupzmVIqwP5l/KLDRTJiB0WegSBuAL33TET7XI+k6p1AAigEAGAodM2C3mlBgmMywlbZAjjrqtSTobEvKwsaGgMhQFPd56b/CzAArAe2YDJd4I4AAAAASUVORK5CYII=" alt="">
If you are exploring Nette for the first time, you should read the
<a href="https://doc.nette.org/quickstart">Quick Start</a>, <a href="https://doc.nette.org">documentation</a>,
<a href="https://pla.nette.org">tutorials</a> and <a href="https://forum.nette.org">forum</a>.</p>
<h2><a n:href="Post:show $post->id">{$post->title}</a></h2>

<h2>We hope you enjoy Nette!</h2>
</div>
<div>{$post->content}</div>
</div>

<style>
html { font: normal 18px/1.3 Georgia, "New York CE", utopia, serif; color: #666; -webkit-text-stroke: 1px rgba(0,0,0,0); overflow-y: scroll; }
body { background: #3484d2; color: #333; margin: 2em auto; padding: 0 .5em; max-width: 600px; min-width: 320px; }
a { color: #006aeb; padding: 3px 1px; }
a:hover, a:active, a:focus { background-color: #006aeb; text-decoration: none; color: white; }
#banner { border-radius: 12px 12px 0 0; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAB5CAMAAADPursXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRFD1CRDkqFDTlmDkF1D06NDT1tDTNZDk2KEFWaDTZgDkiCDTtpDT5wDkZ/DTBVEFacEFOWD1KUDTRcDTFWDkV9DkR7DkN4DkByDTVeDC9TDThjDTxrDkeADkuIDTRbDC9SbsUaggAAAEdJREFUeNqkwYURgAAQA7DH3d3335LSKyxAYpf9vWCpnYbf01qcOdFVXc14w4BznNTjkQfsscAdU3b4wIh9fDVYc4zV8xZgAAYaCMI6vPgLAAAAAElFTkSuQmCC); }
h1 { font: inherit; color: white; font-size: 50px; line-height: 121px; margin: 0; padding-left: 4%; background: url(https://files.nette.org/images/[email protected]) no-repeat 95%; background-size: 130px auto; text-shadow: 1px 1px 0 rgba(0, 0, 0, .9); }
@media (max-width: 600px) {
h1 { background: none; font-size: 40px; }
}
#content { background: white; border: 1px solid #eff4f7; border-radius: 0 0 12px 12px; padding: 10px 4%; overflow: hidden; }
h2 { font: inherit; padding: 1.2em 0; margin: 0; }
img { border: none; float: right; margin: 0 0 1em 3em; }
</style>
<p><a n:href="this, page => $page-1" n:if="$page > 1">‹ back</a>
&nbsp;
<a n:href="this, page => $page+1" n:if="$iterations">next ›</a></p>
{/block}
4 changes: 4 additions & 0 deletions app/presenters/templates/Post/create.latte
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{block content}
<h1>New post</h1>

{control postForm}
4 changes: 4 additions & 0 deletions app/presenters/templates/Post/edit.latte
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{block content}
<h1>Edit post</h1>

{control postForm}
23 changes: 23 additions & 0 deletions app/presenters/templates/Post/show.latte
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{block navig}
<li n:if="$user->loggedIn"><a n:href="edit $post->id">Edit this post</a></li>
{/block}

{block content}
<div class="date">{$post->created_at|date:'F j, Y'}</div>

<h1 n:block=title>{$post->title}</h1>

<div class="post">{$post->content}</div>

<h2>Comments</h2>

<div class="comments">
{foreach $comments as $comment}
<p><b><a href="mailto:{$comment->email}" n:tag-if="$comment->email">{$comment->name}</a></b> said:</p>
<div>{$comment->content}</div>
{/foreach}
</div>

<h2>Post new comment</h2>

{control commentForm}
4 changes: 4 additions & 0 deletions app/presenters/templates/Sign/in.latte
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{block content}
<h1 n:block=title>Sign in</h1>

{control signInForm}
54 changes: 54 additions & 0 deletions database.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

SET NAMES utf8;
SET foreign_key_checks = 0;

CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`post_id` int(11) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`content` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
CONSTRAINT `comments_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


CREATE TABLE `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


-- sample data

INSERT INTO `comments` (`id`, `post_id`, `name`, `email`, `content`, `created_at`) VALUES
(1, 1, 'Jakub', NULL, 'Wort Dressed Sentinent Being water quite a moment and show thirty speck by the floor. brightness glowed at least, nearly dead and was obviously some Vegan Rhino\'s cutlet. It\'s unpleasantly like hitch hiking slang, as anything. - said Zaphod. - Y', '2009-05-11 07:06:05'),
(2, 2, 'Ondřej', NULL, 'Enormous round and guidance system will jump haven\'t opened through the faintly irritated him - That\'s just to Cassette recorder, every to to thirty seconds of us. Arthur began to have Wow, - said to discover into off with pleased with ', '2009-05-19 23:23:21'),
(3, 2, 'Gabriel', NULL, 'Ape-descendant Arthur Dent, and equally get a stone sundial pedestal housed The mice He looked up sharply. He threw Ford handed the Earth passed an answer. - You know, not even finished Permeated - He adjusted it. Arthur agreed with the time', '2009-05-20 04:40:48'),
(4, 2, 'Jakub', NULL, 'Cracked bell, feet up. - Are you will finally managed to see very strong desire just happens. Yeah, I bother please, the not be, - Missiles? Don\'t talk about the common light Slurrp almost to come and the other bits consequences get there ', '2009-05-20 05:14:31'),
(5, 2, 'Daniel', NULL, 'Emphasized because, as the white mice sniffed irritably decided that the ship that the sweaty dishevelled clothes he was for Arthur shivered with Deep Thought, - protested Ford. - said by your brain was almost, miles is each other. Fook ', '2009-05-20 08:31:40'),
(6, 2, 'Emily', NULL, 'Desk. bubble, the wrong bit and the Earth years, maybe that anyone who could get the Sirius Cybernetics Corporation defines a moment, relax and so I\'ve heard rumors about in all intelligent that one pot shot out before a planet ', '2009-05-20 09:52:00'),
(7, 3, 'Olivia', NULL, 'Silly antennae on the thirty seconds later he said. - Yes, - I\'m President always used to give it then? - Well? - Oh into the cold mud. It was clearly was built, and local affairs that\'s for a wicked grin, laugh did we knew much as the spectacle', '2009-05-28 01:50:18'),
(8, 3, 'Vojtěch', NULL, 'Fact! bubble, the wrong bit and the Earth years, maybe that anyone who could get the Sirius Cybernetics Corporation defines a moment, relax and so I\'ve heard rumors about in all ', '2009-05-28 10:06:31'),
(9, 3, 'William', NULL, 'Protruding from years, maybe even myself? slippers, ladder, moon, nightfall was at each other cajoleries and down Diurnal course. - A man frowned at his semi-cousin that through the faintly irritated him - That\'s just to ', '2009-05-28 17:25:41'),
(10, 3, 'Simon', NULL, 'Minds big hello said Arthur. - I will finally realized that he said, - it was only fooling, - What is an interstellar distances in front partly More gunk music and it had nervously, I ', '2009-05-28 23:25:25'),
(11, 3, 'Amelia', NULL, 'Ape-descendant Arthur Dent, and equally get a stone sundial pedestal housed The mice He looked up sharply. He threw Ford handed the Earth passed an answer. - You know, not even finished Permeated - He adjusted it. Arthur agreed with the time', '2009-05-29 06:19:14'),
(12, 4, 'Emily', NULL, 'Violent noise leapt to thirty seconds later he said. - Yes, - I\'m President always used to give it then? - Well? - Oh into the cold mud. It was clearly was built, and local affairs that\'s for a wicked grin, laugh did we knew ', '2009-06-08 17:07:21'),
(13, 4, 'Jessica', NULL, 'Air cushions ballooned out white mice sniffed irritably decided that the ship that the sweaty dishevelled clothes he was for ', '2009-06-08 21:10:34'),
(14, 4, 'Elias', NULL, 'Demarcation may or the wrong bit and the Earth years, maybe that anyone who could get the Sirius Cybernetics Corporation defines a moment, relax and so I\'ve heard rumors about in all intelligent that one pot shot out before a planet ', '2009-06-09 04:40:35'),
(15, 5, 'Jessica', NULL, 'Hence the slow heavy river Moth; wet of the time fresh whalemeat. At lunchtime? The Vogon guard dragged them brightness glowed at least, nearly dead and was obviously some Vegan Rhino\'s cutlet. It\'s unpleasantly like hitch hiking slang, as Tru', '2009-06-19 01:56:47'),
(16, 5, 'Joshua', NULL, 'Optician almost to come and the other bits consequences get there now. The other illusory somewhere brushed backwards of how was was a sharp ringing tones. - he said Slartibartfast coughed politely. - moment in Stone. It saved a white', '2009-06-19 03:44:05'),
(17, 5, 'Lukas', NULL, 'Desk. bubble, the wrong bit and the Earth years, maybe that anyone who could get the Sirius Cybernetics Corporation defines a moment, relax and so I\'ve heard rumors about in all intelligent that one pot shot out before a planet ', '2009-06-19 07:16:40'),
(18, 5, 'Grace', NULL, 'Dent sat on him. - Yeah, OK, - Oh those doors. There must have something else. Come on, to help him, small really thrash it space that ', '2009-06-19 07:28:33');

INSERT INTO `posts` (`id`, `title`, `content`, `created_at`) VALUES
(1, 'Thronged with making you doing', 'Out! looked like it. At an anachronism. The Dentrassis fine, moon, nightfall was at each other cajoleries and down there? - said Arthur turned himself up. - The that now six know the Universe, and it to know directly his seemed certain carbon-ba', '2009-05-11 03:31:16'),
(2, 'Jerked himself feet up', 'Refit, and found to come and the other bits consequences get there now. The other illusory somewhere brushed backwards of how was was a sharp ringing tones. - he said Slartibartfast coughed. Otherwise me. - He passed right between was b', '2009-05-19 15:24:30'),
(3, 'Danger', 'Usually had to one would I know, - Oh those doors. There must have something else. Come on, to help him, small really thrash it space that now six know the Universe, and it to know directly his seemed certain carbon-based life and.', '2009-05-28 01:18:15'),
(4, 'Tossed looked like it', 'Busy? - Just shut up, that spaceship and spewed up in emergencies as such, but... - yelled Ford, - said Arthur Dent with me? - said about to a rather into his neck. The President of the planet Bethselamin soft and said, very fast. Very good. For wha', '2009-06-08 13:17:21'),
(5, 'Eddie your eyes...', 'Airlock hatchway into your house down! Ford Prefect\'s were it for Magrathea, immediate sense in major intestine, in a solid small really thrash it space that now six know the Universe, and it to know directly. House Down Once you talked to', '2009-06-18 23:55:45');
Loading

0 comments on commit 2750df1

Please sign in to comment.