AllCollate it is place which makes the ability to choose hotels easily. Collect hotels info and pricing stats
- Ruby On Rails
- ReactJS
- PostgreSQL
- AWS
In your local machine you have to install (you can use rvm if you want):
Create DB
$ rake db:create
Restore DB Dump
$ psql -d allcollate_development < db_dump/allcollate_development_dump.sql
Run DB migrations
$ rake db:migrate
Install gems
$ bundle install
Install npm packages
$ yarn install
To start the server run the command in the terminal (do not stop the server)
$ rails s
To compile the JS (React) run the command in a new terminal window (do not stop)
$ bin/webpack-dev-server
For ReactJS in Ruby on Rails we use react-rails gem.
Each component should be integrated into a page. We agreed to use server render ({ prerender: true }) where it is possibles and useful.
Please, check out the gem if you have not worked with the react-rails gem before.