Skip to content
Sitio para regalar cosas que no usas
Ruby HTML TSQL CSS Shell Dockerfile Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Change alabs logo to new version (#762) Aug 20, 2019
bin Switch to use double quote style Feb 17, 2018
config New ads layout (#760) Aug 19, 2019
db Fix db structure (#756) Jul 26, 2019
docs Updates privacy policy and address for aLabs May 29, 2018
lib Switch to use double quote style Feb 17, 2018
log [i18n] gitignore log/localeapp.yml Apr 15, 2015
public Fix/titles (#752) Feb 25, 2019
test Fix/titles (#752) Feb 25, 2019
vendor bin/rake max_mind:update Jun 15, 2018
.codeclimate.yml Ignore current codeclimate issues Jan 3, 2018
.env Bump recaptcha from 3.3.0 to 4.4.0 Sep 6, 2017
.env.development Hardcode dev & test DB's Aug 17, 2017
.gitignore Allow easy DB backup and restore Dec 3, 2016
.rubocop.yml Merge branch 'master' into get_rid_of_yahoo Jan 4, 2019
.ruby-version Bump to ruby 2.5 (#722) Feb 17, 2018
.travis.yml Bump to ruby 2.5 (#722) Feb 17, 2018
CONTRIBUTING.md Remove subjetive word Sep 4, 2017
Capfile Change deploy configuration to neptuno Nov 8, 2018
Dockerfile Adds Dockerfile and docker-compose Jul 23, 2019
Gemfile Merge branch 'master' into get_rid_of_yahoo Jan 4, 2019
Gemfile.lock fix tests Jan 6, 2019
LICENSE LICENSE file created Oct 19, 2015
README.md Add license scan report and status (#763) Aug 27, 2019
Rakefile Switch to use double quote style Feb 17, 2018
Vagrantfile Switch to use double quote style Feb 17, 2018
config.ru Switch to use double quote style Feb 17, 2018
docker-compose.yml Adds Dockerfile and docker-compose Jul 23, 2019

README.md

nolotiro.org

Build Status Dependency Status FOSSA Status

This is the next revision of nolotiro.org (v3), this time in Ruby On Rails.

  • Ruby: 2.5
  • Rails: 5.1
  • PostgreSQL: 9.6

Automatic Installation

You need to install VirtualBox and Vagrant. Then from the root directory of the project, execute

vagrant up

When finished, you need to log in to the virtual machine with the command

vagrant ssh

Finally you should start the application server

cd /vagrant
bin/rails s -b 0.0.0.0

Now you can access the web application at this URL

http://localhost:3000

Manual Installation

Check out the script in bin/bootstrap.sh - that's the same that Vagrant uses.

Test setup

Running bin/rake will run all the tests, that should always pass on a freshly downloaded copy a nolotiro's master.

More information

For obtaining geographic information we use [Yahoo YQL].

For IP GeoLocation we use GeoLite2 City. The database is bundled with this repo in compressed format. To extract the database, run

bin/rake max_mind:extract

You can also, grab the latest version of the DB from MaxMind by running

bin/rake max_mind:update

For delayed tasks, we use Sidekiq, that uses Redis. For caching, we use Redis.

sudo apt-get install redis-server
bundle exec sidekiq

Development environment magic

For the emails we recommend using mailcatcher. This doesn't send external emails during development, and you can see them in a nice web interface. The SMTP port is already configured.

gem install mailcatcher
mailcatcher
open http://localhost:1080

Happy hacking!

i18n

For the localization and translation interface we use [LocaleApp].

API

v1

Example URLs:

https://beta.nolotiro.org/api/v1/woeid/list
https://beta.nolotiro.org/api/v1/woeid/766273/give
https://beta.nolotiro.org/api/v1/woeid/766273/give?page=2
https://beta.nolotiro.org/api/v1/ad/153735

3rd Party

  • Core based on Ruby On Rails.
  • Geographical data is mantained in-app, and it started as a modified copy of the Yahoo Geoplanet DB, which originally released as CC BY 3.0 US, then taken down, but still available in archive.org.
  • jQuery for Javascript.
  • GeoLite2 data API by MaxMind to auto detect user location.
  • Logo by Silvestre Herrera under GPL License.

License

FOSSA Status

You can’t perform that action at this time.