LookingFor is a rails application that pulls developer job postings from the internet and uses them to answer the question "Hello, is it me you're looking for?"
We use basecamp to keep track of project information, wireframes, etc. Contact the team to be added to the project.
We track upcoming work in Github Issues.
Backend:
- Ruby
- PostgreSQL
- Puma Server
To install Ruby, check out RVM, rbenv or ruby-install.
PostgreSQL can be installed with Homebrew on Mac OS X: brew install postgresql
If you're on a Linux system with apt-get then run: apt-get install postgresql postgresql-contrib
-
You will need to make sure postgres is running and then run these commands in console:
bundle install
- Install all dependenciesrake db:create
- Create the databaserake db:migrate
- Migrate the databaserake db:seed
- Seed the database
-
You can import a semi-current copy of the production database
- Drop your local db:
rake db:drop
- Assuming you haven't changed any of the basic defaults - run
heroku pg:pull DATABASE_URL lookingfor_development --app lookingforme
- Find out more here
- Drop your local db:
- Make sure you have bundled with:
bundle install
- Start the server with:
bundle exec rails s
- Then you can access the local server at localhost:3000
** Note: You must be able to run ruby 2.3.0 in order to view the app locally, as that is what the Gemfile currently specifies.
LookingFor has continuous integration enabled with the Travis CI gem. To get it running and use the command line client, run:
gem install travis -v 1.8.2 --no-rdoc --no-ri
Make sure everything works by running:
travis version
You can run travis help
to see a list of all available query commands. Run travis help <query command>
to get detailed information about a particular command.
More information can be found here or in the docs.
If you have issues running tests locally after setting up Travis CI, run the command rake db:test:prepare
and that should solve the issue.
- Run the test suite:
bundle exec rspec
To run a single test suite, you can do so with:
rspec path/to/the_spec.rb
To run a single test, you can do so by running the its first line:
rspec path/to/the_spec.rb:15
- Clone this repo.
- Create a new branch
git checkout -b name-of-branch
- Commit and push as usual on your branch.
- When you're ready to submit a pull request, resolve any conflicts, push to your branch and submit the pull request as usual.
- Fork this repo.
- Add the upstream lookingfor repository as a new remote to your clone.
git remote add upstream https://github.com/LookingForMe/lookingfor.git
- Create a new branch
git checkout -b name-of-branch
- Commit and push as usual on your branch.
- When you're ready to submit a pull request, rebase your branch onto
the upstream master so that you can resolve any conflicts:
git fetch upstream && git rebase upstream/master
You may need to push with--force
up to your branch after resolving conflicts. - When you've got everything solved, push up to your branch and send the pull request as usual.
For those collaborators from Turing, all production errors can be found in real time on the #lookingfor-errors channel in Slack.
LookingFor uses New Relic. New Relic is also accessible in development at localhost:3000/newrelic
In order to access the account for LookingFor, you will need to ask one of the maintainers to invite you via e-mail. New Relic is already set up with Heroku, so this is all you need to access the production data.
If you want to run New Relic locally, you will also need the New Relic license key.
Once you have the license key and access to the account, you'll need to set up figaro:
- Generate an application.yml file by typing in your terminal:
bundle exec figaro install
- Add the following line to your application.yml file:
new_relic_license_key: <key provided>
- Restart your server and the data will show up on New Relic within a few minutes.
More performance data can be generated in development, as documented in Basecamp. If you need access to this document, you can contact lookingfor@gmail.com.