• Stars
    star
    668
  • Rank 67,542 (Top 2 %)
  • Language
    Ruby
  • Created over 11 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A startup template for Ruby on Rails 4 applications

Rails Startup template

This is a template I use for my new Ruby on Rails 4 applications. Pull requests are welcome.

Also check out Startup Readings.

How to Use

rails new [app_name] -m https://raw.github.com/dennybritz/rails_startup_template/master/template.rb

What it does

  1. Adds the following gems:
  • analytics-ruby: I use segment.io as an anaytics provider. Segment.io is easy to integrate, asynchronous, and forwards data to other providers like Mixpanel and Kissmetrics.
  • bcrypt-ruby: I usually implement authentication myself instead of using gems like Devise. This is needed for the has_secure_password functionality. See API Doc.
  • bourbon: Bourbon provides useful SASS mixins for cross-browser compatibility.
  • CanCan: CanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access.
  • (Optional) haml-rails: HAML is a beautiful templating language. I prefer it over ERB.
  • simple_form: SimpleForm makes it easy to build complex form using simple markup.
  • uuidtools: To generate UUIDs, which is useful for various things.
  • rspec-rails: Rspec is a testing tool for test-driven and behavior-driven development. It makes writing specs more enjoyable.
  • guard-rspec: Guard for automatically launching your specs when files are modified.
  • (test environment) capybara: I use Capybara to write integration tests and simulate user behavior.
  • (test environment) factory_girl_rails: FactoryGirl provdes a flexible alternative to Rails fixtures.
  • (production environment) rails_12factor: This is needed for deploying Rails 4 applications on Heroku.
  1. Sets up foreman to deal with environment variables and background services. Instead of using rails s you should use foreman s. Add your own environment variables in the .env file.

  2. Cleans up assets by renaming application.css to application.css.scss and removing the include_tree directives. It's better design to import and require things manually. For example, @import 'bootstrap';

  3. Optionally installs Twitter bootstrap.

  4. Optionally installs Font Awesome.

  5. Initializes a new git repository with an initial commit.

  6. Optionally create a github repository.

TODO

Here are some things I'd like to add:

  • Add Heroku-specific gems inside a question group, "Are you using Heroku?"

More Repositories

1

reinforcement-learning

Implementation of Reinforcement Learning Algorithms. Python, OpenAI Gym, Tensorflow. Exercises and Solutions to accompany Sutton's Book and David Silver's course.
Jupyter Notebook
20,284
star
2

cnn-text-classification-tf

Convolutional Neural Network for Text Classification in Tensorflow
Python
5,635
star
3

deeplearning-papernotes

Summaries and notes on Deep Learning research papers
4,385
star
4

nn-from-scratch

Implementing a Neural Network from Scratch
Jupyter Notebook
1,811
star
5

chatbot-retrieval

Dual LSTM Encoder for Dialog Response Generation
Jupyter Notebook
1,579
star
6

neal-react

Startup Landing Page Components for React.js
JavaScript
1,378
star
7

rnn-tutorial-rnnlm

Recurrent Neural Network Tutorial, Part 2 - Implementing a RNN in Python and Theano
Jupyter Notebook
891
star
8

rnn-tutorial-gru-lstm

Language Model GRU with Python and Theano
Python
492
star
9

tf-rnn

Practical Examples for RNNs in Tensorflow
Jupyter Notebook
484
star
10

startupreadings

Reading list for all things startup-related
423
star
11

papergraph

AI/ML citation graph with postgres + graphql
Jupyter Notebook
188
star
12

booknotes

Notes I'm taking when reading books
137
star
13

neal-sample

Sample page for neal-react
JavaScript
69
star
14

nn-theano

Speed up your Neural Network with Theano and the GPU
Python
61
star
15

bella

Labeling and Evaluation Tool for NLP Tasks
JavaScript
55
star
16

papergraph-ui

Browse the CS/AI/ML research paper graph
Svelte
52
star
17

sentiment-analysis

Japanese Sentiment Analysis
Jupyter Notebook
42
star
18

deepdive

Scala
36
star
19

akka-cluster-deploy

Akka cluster + Docker + CoreOS
Scala
26
star
20

url-metadata-extractor

API that extracts metadata from a URL.
HTML
26
star
21

linkedin-extractor

Given a Linkedin profie URL returns structured metadata.
HTML
25
star
22

representation-learning

Unsupervised Deep Learning and Representation Learning Tutorial
Jupyter Notebook
12
star
23

pandoc-graphql

Turn your local documents into a GraphQL API using pandoc
Rust
12
star
24

ablog-content

Jupyter Notebook
9
star
25

probability-monads

Haskell
9
star
26

s3-cors-upload-rails

Ruby
8
star
27

visual-pagedump

An API to create visual-semantic mappings between web pages and DOM nodes
JavaScript
6
star
28

boilerpipe-api

Extract main article text from HTML pages
Scala
5
star
29

elk-playground

Playground for Elasticsearch, Logstash and Kibana using Docker
Shell
5
star
30

scpd-downloader

Stanford SCPD Lecture Downloader
Ruby
4
star
31

twitter-collect

Monitors Twitter for interesting articles
JavaScript
3
star
32

crawler-scala

Scala
2
star
33

hndump

Watches HackerNews and dumps raw events for later analysis.
JavaScript
1
star
34

sampler

Gibbs sampler for factor graphs
Scala
1
star
35

rnn-bptt

Latex files for RNN BPTT post
TeX
1
star
36

rust-analyzer-issue3667

Rust
1
star
37

phonenumber-api

Extracts phone numbers from raw text
Scala
1
star
38

twitter-smileys

Crawling twitter for smiley distant supervision
TeX
1
star
39

actioncrawler

Crawling wrapper for webdriver
JavaScript
1
star
40

lang_classifier

Python language classifier
Python
1
star