A tribute to the amazing Russian poet - Sergey Yesenin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
storage
tests
.bowerrc
.buildpacks
.env.example
.gitattributes
.gitignore
Procfile
artisan
bower.json
composer.json
composer.lock
gulpfile.js
package.json
phpunit.xml
readme.md
server.php

readme.md

A tribute to the amazing Russian poet – Sergey Yesenin

important

heroku crashed my database so I will reinitialize app when I find some free time

I love reading Sergej Yesenin. Most of the time, I was reading technical books only. After reading Letter to Mother, Sing, old man, to the bloody guitar, and You don’t love me and don’t feel compassion I just had to read his every poem.

After a lot of googling, I found it interesting that most of the websites with poems are bad and full of ads. Also, I wanted to check out how to deploy AngularJS and Laravel application to the Heroku.

You can check out the website on http://yesenin.herokuapp.com.

Technical TODO:

  • languages are currently hard coded (English and Croatian) – load the list from the server
  • allow users to add poems
  • allow users to read poems with JavaScript turned-off

Non-Technical TODO:

  • add more poems

If you want some poem to get published, don’t be shy and feel free to contact me: davor[at]warriorkitty.com.

Blog post about this application is here.

Under the hood

Files you need to look up if you want to contribute (relative to the root of the application):

app/Http/routes.php # for new routes
gulpfile.js # if you add a new JS file, make sure you add it here
resources/assets/sass/app.scss # feel free to redesign the whole app
app/Http/Controllers/PoemController.php # poem controller
resources/views/partials/dashboard/poems.php # main view
resources/views/layout.blade.php # main layout file

Run the app locally

Run these commands:

# composer will download Laravel
composer install
# npm will install everything you need on the server-side
npm install
# bower will install everything you need on the client-side
bower install
# gulp will convert SASS to CSS and concat all JS files
gulp && gulp watch

You will probably want to open a new Terminal here:

# create a .env and put your db credentials inside
cp .env.example .env
# after creating your database, recreate tables
php artisan migrate:refresh --seed
# generated key will be used when encrypting data
php artisan key:generate
# serve the application
php artisan serve