Skip to content

Aplicación para el manejo de las CasasTI dentro del Tecnológico de Monterrey, Campus Monterrey

Notifications You must be signed in to change notification settings

saitcmty/CasasTI

Repository files navigation

Applicacion para las Casas de ITC

Link de la aplicación: https://saitcmty.com/

All Changes must be made through a pull request.

Installing SATIC on MAC OS X

First, go to the folder you would like to have the application in.

After that, clone the files with: $ git clone https://github.com/saitcmty/CasasTI.git

Mac OS X already ships with ruby 2.0.0, therefore we need to install a newer version.

We will first get Homebrew to perform all of our installs. We run: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" When asked for a password, it will be the one of your computer. You are downloading a program and are asked for your permission.

Then, we'll install gnupg in order to install the rest necessary. $ brew install gnupg gnupg2

Then we'll get RVM in order to easily change between ruby versions. $ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB $ curl -sSL https://get.rvm.io | bash -s stable --ruby

Now we'll install the correct version of ruby.

Sometimes we need to modify our ~/.bash_profile file, we'll open it with Visual Studio Code typing: $ code ~/.bash_profile We'll add the following line at the bottom of the file: source ~/.rvm/scripts/rvm

Close and open again the terminal in order for rvm to be recognized as a command. Don't forget to return to the folder of the repository!! Now we'll install the proper ruby version. (Our current version is ruby-2.6.0) $ rvm install "ruby-2.6.0" $ rvm use ruby-2.6.0

Now we are running the correct ruby version!!

Installing PostgreSQL $ brew install postgresql

Now we'll start postgresql: $ brew services start postgresql

Now we are ready to setup the app!! Run: $ bin/setup

You'll probably see some red lines, don't worry, leave the program running until it installs everything necessary.

When done, you can start the application server with $ rails server

Useful commands

  • Check if Ruby is installed
foo@bar:~$ ruby -v
  • Install all dependencies
foo@bar:~$ gem install
  • Launch Server
foo@bar:~$ rails server

About

Aplicación para el manejo de las CasasTI dentro del Tecnológico de Monterrey, Campus Monterrey

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published