It's a list of awesome Persian entrepreneurs doing great work around the world. It's inspired by Beggars.co idea. We didn't know PHP so we rewrote the whole thing in Ruby on Rails.
gem install foreman
bundle install
echo "RACK_ENV=development" >> .env
echo "PORT=3000" >> .env
rake db:create db:migrate
foreman start
You can import a list of people by rake db:person:import
You can also wipe off the database of 'persons' by rake db:person:clear
You can add admin via rails console
.
irb(main):015:0> a=Admin.new(email: '[email protected]', password: 'asecretpass')
irb(main):016:0> a.save!
You need to remove therubyracer
and execjs
gems. Heroku doesn't need a js runtime.
Follow the quick start guide to deploy it. You can also add a custom domain with SSL.
You need to remove therubyracer
and execjs
gems. Heroku doesn't need a js runtime.
Alternatively, you can use nodejs instead of execjs
. It's was just more convenient to add a gem rather than asking all to install nodejs.
Follow this guide!