Notes App using Ruby on Rails, Postgres, and React.
https://whispering-lowlands-12048.herokuapp.com/
- Ruby 2.3.8
- Rails 5.1.5
- Postgres >= 10
I'm using RVM to handle with Ruby enviroments. For this repository, the environment is configured in .rvmrc
file.
- Create .env file with the content below:
POSTGRES_USER='<POSTGRES_USER_HERE>'
POSTGRES_PASSWORD='<POSTGRES_USER_PASSWORD_HERE>'
POSTGRES_HOST='<POSTGRES_HOST_HERE>'
- Install required gems for project:
bundle install
- Setup database:
rails db:setup
- Run app using Passenger:
bundle exec passenger start
- Open your web browser and go to
http://localhost:3000
.
- Run RSpec using:
bundle exec rspec
- This app uses the gem react-rails to integrate React.js in Rails views. To integrate React.js, only the initial configuration of the gem was performed following the steps in the documentation. Therefore, for production, it is necessary to review the auto-generated files;
- Write feature tests using Capybara (https://thoughtbot.com/blog/rspec-integration-tests-with-capybara).
Please feel free to contribute, forking this repository, and sending your pull request