Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewmcodes-archive/rails_template

Basic Rails Template
https://github.com/andrewmcodes-archive/rails_template

postgres postgresql rails ruby standard standardrb tailwind tailwindcss template

Last synced: 27 days ago
JSON representation

Basic Rails Template

Awesome Lists containing this project

README

        

[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)

# README

My personal Rails starter template that I use for blog posts.

## Install

### Clone the repository

```shell
git clone [email protected]:andrewmcodes/rails_template.git
cd project
```

### Update app name

Navigate to `config/application.rb` and change `AndrewmcodesTemplateApp` to whatever the name of your app is.

Do the same in `config/database.yml`

### Dependencies

- Ruby 2.7
- Node 13.7.0
- Rails 6.0.2.1
- Webpacker 4.2.2
- TailwindCSS 1.2.0
- psql (PostgreSQL) 12.1

### Install dependencies

Using [Bundler](https://github.com/bundler/bundler) and [Yarn](https://github.com/yarnpkg/yarn):

```shell
bundle && yarn
```

### Initialize the database

```shell
bin/setup_db
```

## Serve

```shell
rails s
```

If you want to run the webpack-dev-server and livereload, run this in another tab:

```shell
bin/guard
```