Welcome to the Gone Fishing App! This application serves as a starting point for building a web application using the Ruby on Rails framework.
Before running this application, make sure you have the following installed on your system:
- Ruby (version 3.0.0 or later)
- Rails (version 7.0.2 or later)
- PostgreSQL (version 10 or later)
-
Clone the repository:
git clone https://github.com/nullbr/fishing-with-hotwire.git
-
Navigate to the project directory:
cd fishing-with-hotwire
-
Install the dependencies:
bundle install
-
Set up the database:
rails db:migrate rails db:seed
-
Install assets dependencies:
rails assets:precompile
-
Start the server:
rails server
-
Open your browser and visit
http://localhost:3000
to see the application running.
This Rails application comes with sensible defaults, but you can customize it according to your needs. Here are some important files and directories you might want to configure:
-
config/database.yml
: Modify the database configuration settings such as username, password, host, etc. -
config/secrets.yml
: Store secret keys and credentials used by the application. Make sure to update the secret key base and other sensitive information. -
config/environments/
: Customize the application's environment-specific settings. -
app/views/
: Define the views and templates for your application.
During development, you can use the following commands:
-
rails console
: Start the Rails console to interact with your application and perform debugging tasks. -
rails routes
: Display a list of all defined routes in your application. -
rails generate
: Use Rails generators to quickly scaffold models, controllers, views, and more. -
bundle exec rspec
: Run the tests using RSpec.
To deploy your Rails 7 application to a production environment, you can follow these general steps:
-
Set up a server with the necessary dependencies (e.g., Ruby, Rails, PostgreSQL, etc.).
-
Configure your web server (e.g., Nginx, Apache) to serve the application.
-
Set up a production database and update the database configuration in
config/database.yml
accordingly. -
Precompile the assets:
rails assets:precompile RAILS_ENV=production
-
Start the Rails server in production mode:
rails server -e production
For more detailed instructions on deploying a Rails application, refer to the official Rails documentation.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.