Project Create with React and RailsAPI
Live Demo
.
Report Bug
·
Request Feature
This project is a Web Page for a business in Arequipa, Peru. The owner need to show his services, products, testimonials and a contact section with GoogleMaps.
- npm version 6.13.4 or more
- node version 8.17.0 or more
- ruby version 2.6.5 or more
- rails version 6.0.2.1 or more
- clone the repository hassana
- cd in to the folder and run
bundle install
- run
rails db:create && rails db:migrate && rails db:seed
* (If there are problems with the service of postgresql check DB Section) - cd in to /client folder and run
npm install
- return to root folder and run
rails start
- wait until both servers will be initialized
- go to localhost:3000
- Run:
sudo apt-get update && sudo apt-get install postgresql
- Run:
sudo service postgresql start
- Run:
sudo -i -u postgres
- Run:
psql
- Run:
CREATE USER rails with encrypted password 'rails';
(with semicolon) - Run:
ALTER USER rails createdb;