Code Monkey home page Code Monkey logo

blog.crowdint.com's Introduction

blog.crowdint.com

Welcome to our, kind of new, blog.

It was time. A rewrite for this site was due since last year. So, I decided to do something about it this weekend.

We were using Jekyll on our old version, and it was great! until it became too slow to compile once we reached around 60 posts and it was a bit frustrating, discouraging us from blogging.

Open Sourced

As we did with the old version, the code for this blog is open sourced. You will find it on its github page.

Rails 3.2.1

I know, even that there is probably a thousand blog services / gems / templates out there to set up a blog immediately, but, there was a couple of things I wanted to learn so, I decided to code it myself.

image1

Really? Another Rails blog example

Well, yes. I know this is the example by choice when someone is trying to learn Rails, but I still wanted to open source it for the following reasons.

Maybe someone needs to take a look at how I implemented the post CRUD using Backbone.

Or take a look at how I used Devise with Google Apps login so only people with a @crowdint.com email account can access the backend.

Another interesting bit is how I was able to preprocess JST templates through slim and eco. WARNING: THIS MIGHT NOT BE A GOOD PRACTICE.

I am, by no means, an expert of what I just described. So, it is important for me that someone else takes a look at the code and let me know how to improve it.

Example, I know there's not enough tests in the code. I suck because I couldn't do follow the TATFT philosophy that I follow on "real life" applications. I lie to myself and think that it was because I really didn't know what I was doing, but, its still a lie. Promise to make up for that soon.

image2

You won't see any Javascript tests because I don't have that much experience with those, but, I am sure that soon, one of my awesome teammates will write and commit those. That way, I'll be able to learn about it.

There's obviously still a lot to do, I would like to see a better post editor. I love Markdown, I want to try and find a JS WYSIWYG plugin that supports it. I would also love to move the backend to a Rails Engine so its more reusable. I'll work on all these items as time permits.

So, there you go. Yet another Backbone, Twitter Bootstrap, Devise, Slim, Rails 3.2 sample application.

Hope browsing through this code helps you learn something. Hope browsing through this code encourages to teach me something.

Issues and Pull requests are more than welcome.


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.