This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
- If you don't have postgres install, install it (https://postgresapp.com/).
- Postgres must be configured to work with ruby/rails. In the case of
postgresappabove, this means the following commands (Per the installation instructions) - Add postgressapp to your paths
- run
sudo mkdir -p /etc/paths.d - run
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
- Configure postgres to work with rails
- run
sudo ARCHFLAGS="-arch x86_64" gem install pg(one time. In order to make rails work with posgres)
- If you don't have a ruby environment manager, install rbenv
- Instal rbenv
rbenv --version- rbenv returned:
rbenv: version `2.5.1' is not installed (set by /Users/kevingarcia/repos/fruit_map/.ruby-version) - run
rbenv install 2.5.1
- If you don't have bundler, install it
- run
gem install bundler - run
rbenv rehash
- install NPM, Rails and Gem packages
- run
npm install - run
bundle install - run
rails db:create - run
rails db:migrate - run
rails db:seed - Get a google maps api key from: https://developers.google.com/maps/documentation/javascript/get-api-key
- add your api key to
rails credentials:edit - run
rails s - in a separate tab, run
npm run start - the local webserver can be accessed at
http://localhost:3000/ - develop