The Hello World Rails App is a basic Ruby on Rails project created to learn how to set up a Rails 7 project connected to a Postgresql database.
- Set up a basic Ruby on Rails project.
- Connect the Rails project to a PostgreSQL database.
- Implement a controller and a view for displaying a 'Hello World' message at the main page.
To get a local copy up and running, follow these steps.
In order to run this project you need:
Prerquisites: Ruby, Ruby Development Kit (for Windows), Ruby Gems packaging system, and SQLite. Run the following command...
$ gem install rails
cd my-folder
git clone https://github.com/jcmunav63/hello-world-rails.git
This project does not require additional dependencies, just Ruby interpreter. However, it uses RuboCop as a linter and you should set it up as well.
bundle install
To run the project, navigate to the project directory and execute the following command:
Start the Ruby on Rails web server (Puma server) typing the following command...
rails s , or the complete command,
rails server
To run tests, run the following command:
Run the following command
rubocop
You can deploy this project using:
Not available at the moment.
👤 Juan Carlos Muñoz
- GitHub: @jcmunav63
- Twitter: @jcmunav63
- LinkedIn: @juan-carlos-muñoz
- No future features will be added.
Contributions, issues, and feature requests are welcome!
If you like this project please give a star. Thanks in advance.
I would like to thank all of my colleagues who inspire to do my best everyday.
Did you create this project from scratch?
- Yes, it is a basic project for starting to set up a Ruby on Rails project, connecting it to a external PostgreSQL database, and start to implement a custom controller and its view.
This project is MIT licensed.