The 5 Things App is designed to help users appreciate the smaller joys in life by listing down five things that make them happy every day.
These instructions will get you a copy of the project up and running on your local machine
Ensure that you have the following installed on your local machine:
- Clone the repository to your local machine
git clone https://github.com/yourusername/five-things.git
- Navigate to the project directory
cd five-things
- Install necessary gems
bundle install
- Install PostgreSQL
brew install postgresql
brew services start postgresql
- Create the database
rails db:create
- Migrate the database
rails db:migrate
- Seed the database
rails db:seed
- To run the complete test suite, execute
rspec # run all tests
rspec spec/requests/users_spec.rb # run a specific testOption 1: Using Foreman (recommended for production-like environment)
Start both Rails server and ngrok simultaneously:
bin/devThis will start:
- Rails server on
http://localhost:3000 - ngrok tunnel (URL will be shown in the logs)
Option 2: Manual setup (recommended for debugging with binding.pry)
Start Rails server and ngrok separately:
Terminal 1 - Rails Server:
rails sTerminal 2 - ngrok (for mobile testing):
ngrok http 3000The ngrok URL will be displayed in Terminal 2 under "Forwarding" (e.g., https://abc123.ngrok-free.app, https://abc123.ngrok-free.dev, or https://abc123.ngrok.io). Use this URL to test the app on your mobile device. Ngrok URLs may end in .app, .dev, or .io depending on your ngrok account. The app is configured to accept all formats. 🙌🏻
- Poetry Service: Fetches a random poem to display on the page.
- Precompile assets
rails assets:precompile
- Push to your deployment platform
If you would like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
- Repository: Five Things App
- Developer: Emma Rünzel - [email protected]
Enjoy Five Things, and remember to appreciate the litte things!
Made with