-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,55 @@ | |
## 🌟 Features | ||
|
||
- Ruby (3.3.1) and Rails (7.1) | ||
- PostgresSQL 16.3 | ||
- [PostgresSQL 16.3](https://www.postgresql.org) | ||
- [Tailwind CSS](https://tailwindcss.com) | ||
- Uses [Vite Ruby](https://vite-ruby.netlify.app) for asset management. It is based on Vite.js. It replaces webpacker, jsbundling-rails, cssbundling-rails, importmaps and sprockets. | ||
- Uses [Bun](https://bun.sh) for npm package manager. No need to install node and yarn. | ||
- Uses [Phlex](https://www.phlex.fun) for component-based views. It is alternative to ViewComponent. | ||
- Uses [Phlex](https://www.phlex.fun) for component-based views. It is an alternative to [ViewComponent](https://viewcomponent.org). | ||
- Uses Rails' default testing library, minitest along with [Factorybot](https://github.com/thoughtbot/factory_bot) | ||
- Auto-formats Ruby code with [rubocop](https://rubocop.org). | ||
- Auto-formats JavaScript and CSS code with [prettier](https://prettier.io). | ||
- Uses Github Actions for conntinuous integration and deployment. | ||
- Supports deployment at [Heroku](https://www.heroku.com/platform) and [Render](https://render.com) | ||
|
||
|
||
## Usage | ||
|
||
### Prerequisites | ||
- Ruby 3.3 | ||
- Check the [.ruby-version](.ruby-version) | ||
- PostgreSQL 16.3 | ||
- Bun | ||
|
||
Refer | ||
|
||
### Building a new application | ||
|
||
1. Clone the base repository | ||
``` | ||
git clone [email protected]:yatish27/shore.git your_new_project_name | ||
``` | ||
|
||
2. Enter the project directory | ||
``` | ||
cd your_new_project_name | ||
``` | ||
|
||
3. Replace `Shore` with your application's name. Let's say you want to name your project as `AirKit` | ||
|
||
``` | ||
./bin/replace_name AirKit | ||
``` | ||
|
||
4. Run setup | ||
|
||
``` | ||
./bin/setup | ||
``` | ||
|
||
5. Start your application | ||
``` | ||
bin/dev | ||
``` | ||
|
||
6. Visit `http://localhost:3000` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Prerequsisties | ||
|
||
## Ruby | ||
Use a Ruby version manager like [rbenv](https://github.com/rbenv/rbenv?tab=readme-ov-file#using-package-managers) to install ruby. | ||
1. Install rbenv | ||
``` | ||
brew install rbenv ruby-build | ||
``` | ||
|
||
2. Install ruby with the version in [.ruby-version](./../.ruby-version) | ||
|
||
``` | ||
rbenv install 3.3.1 | ||
``` | ||
|
||
3. Check the version | ||
``` | ||
ruby -v | ||
``` | ||
``` | ||
ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23] | ||
``` | ||
|
||
## PostgresSQL | ||
You can install PostgresSQL using [postgresapp.com](https://postgresapp.com) or Homebrew | ||
|
||
### Using Homebrew | ||
|
||
1. Install | ||
|
||
``` | ||
brew install postgresql@16 | ||
``` | ||
|
||
2. Add psql to $PATH | ||
|
||
``` | ||
echo 'export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"' >> ~/.bashrc | ||
``` | ||
3. Start the server | ||
``` | ||
brew services start postgresql@16 | ||
``` | ||
4. Create a `postgres` user | ||
|
||
``` | ||
createuser -s postgres | ||
``` | ||
|
||
5. Set the password for postgres | ||
|
||
``` | ||
psql postgres | ||
``` | ||
Within psql | ||
|
||
``` | ||
ALTER ROLE postgres WITH PASSWORD 'password'; | ||
``` | ||
|
||
### Using postgresapp.com | ||
|
||
1. Visit https://postgresapp.com and download the app with PostgresSQL | ||
2. Install the app | ||
3. Start the server and initialize the cluster using the UI | ||
|
||
|
||
## Bun | ||
Visit [bun.sh](https://bun.sh/docs/installation) to learn about installation process | ||
|
||
### Using homebrew | ||
|
||
``` | ||
brew install oven-sh/bun/bun | ||
``` | ||
|
||
After installing, check the version | ||
|
||
``` | ||
bun -v | ||
``` |