Aplicación para el manejo de logística del campamento Patrones Hermosos.
- Client Details
- Environment URLS
- Da Team
- Management resources
- Setup the project
- Running the stack for development
- Stop the project
- Restoring the database
- Debugging
- Running specs
- Checking code for potential issues
Name | Role | |
---|---|---|
Silvia Iliana Ramirez Ramirez | iliana.ramirez [csoftmty.org] | Client |
- Production - patrones-hermosos-backend.herokuapp.com
- Development - localhost:3000
Name | Role | |
---|---|---|
Katie Arriaga | katiearriaga [live.com] | Development, Product Owner |
Oscar Gonzalez | osdagoso [hotmail.com] | Development, Scrum Master |
Melissa Treviño | mely.trevic [gmail.com] | Development, Configuration Manager |
Rubén de la Peña | ruben.dlpena [gmail.com] | Development, Project Manager |
You should ask for access to this tools if you don't have it already:
First, make sure you've installed all the necessary tools.
- Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install rbenv
$ brew install rbenv
$ rbenv init
-
Close your Terminal window and open a new one so your changes take effect.
-
Install Ruby 2.6.1
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Ruby
rbenv install 2.6.1
rbenv global 2.6.1
ruby -v
- Install Rails 5.2.2
gem install rails -v 5.2.2
rbenv rehash
- Install PostgreSQL
brew install postgresql
brew services start postgresql
- Clone the repository into your local machine
$ git clone https://github.com/ProyectoIntegrador2018/patrones_hermosos_backend.git
-
Move into the project folder with
cd patrones_hermosos_backend
. -
Install figaro locally.
$ bundle install
$ bundle exec figaro install
- Add the database info in the generated
config\application.yml
file.
phb_db_host: "The host URL of the DB with quotes"
phb_db_port: "The port number of the DB with quotes"
phb_database: "The name of the database with quotes"
phb_db_username: "The username of the DB with quotes"
phb_db_password: "The password of the DB with quotes"
- Setup the database's environment variables
$ nano .bash_profile
Inside the .bash_profile
file, enter at the end:
export PHB_DB_HOST="The host URL of the DB with quotes"
export PHB_DB_PORT="The port number of the DB with quotes"
export PHB_DATABASE="The name of the database with quotes"
export PHB_DB_USERNAME="The username of the DB with quotes"
export PHB_DB_PASSWORD="The password of the DB with quotes"
-
Restart the terminal
-
Setup the database:
$ rails db:migrate
- Start the application:
$ rails serve
- Install GPG keys
$ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
- Install RVM
curl -sSL https://get.rvm.io | bash -s stable
- Install Ruby - Version 2.6.1
rvm install "ruby-2.6.1"
rvm use ruby-2.6.1 --default
- Install Rails - Version 5.2.2
gem install rails -v 5.2.2
- Install Postgres 11
Go to https://www.enterprisedb.com/downloads/postgres-postgresql-downloads.
After installing please you can follow this simple steps:
- Clone this repository into your local machine
$ git clone https://github.com/ProyectoIntegrador2018/patrones_hermosos_backend.git
- Setup the database:
$ rails db:migrate
- Start the application:
$ rails s
- Fire up a terminal and run:
$ rails s
In order to stop the project just hit Ctrl-C on the terminal where out Rails server is running.
- The environment keys need to be setup/updated (if modified). Fire up a terminal, navigate to the project directory, and run:
$ figaro heroku:set -e production -a patrones-hermosos-backend