Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamva/persianpreneur
Show off your fellow entrepreneurs to the world.
https://github.com/kamva/persianpreneur
rails-application ruby
Last synced: 2 days ago
JSON representation
Show off your fellow entrepreneurs to the world.
- Host: GitHub
- URL: https://github.com/kamva/persianpreneur
- Owner: Kamva
- Created: 2014-06-28T18:23:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T08:15:04.000Z (over 7 years ago)
- Last Synced: 2024-12-31T03:21:07.433Z (3 days ago)
- Topics: rails-application, ruby
- Language: JavaScript
- Homepage: http://persianpreneurs.com
- Size: 27.7 MB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Codacy Badge](https://www.codacy.com/project/badge/6d272da20346454084daca2f37381349)](https://www.codacy.com)
#What is Persianpreneur?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.
## Development evnironment
```Ruby
gem install foreman
bundle install
echo "RACK_ENV=development" >> .env
echo "PORT=3000" >> .env
rake db:create db:migrateforeman start
```## Tasks
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`.
```Ruby
irb(main):015:0> a=Admin.new(email: '[email protected]', password: 'asecretpass')
irb(main):016:0> a.save!
```## Deploy on Heroku
You need to remove `therubyracer` and `execjs` gems. Heroku doesn't need a js runtime.
## Deploy on AbarCloud
Follow the [quick start guide](https://en-docs.abarcloud.com/quickstart.html) to deploy it. You can also [add a custom domain with SSL](https://en-docs.abarcloud.com/deployment/custom-domain-names.html).
## Deploy on Heroku
You need to remove `therubyracer` and `execjs` gems. Heroku doesn't need a js runtime.
## Deploy elsewhere
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!](https://gorails.com/deploy/ubuntu/14.04)