Skip to content

Commit

Permalink
Finalize stack update
Browse files Browse the repository at this point in the history
  • Loading branch information
shahroz-ashraf committed Aug 10, 2020
1 parent bb24a2c commit 7978d62
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

OpenSourceBilling
===================

Expand Down Expand Up @@ -88,7 +89,12 @@ To clone project code from GitHub, give your GitHub account credential for authe
#### 3.3 Installing Gems

bundle install
#### 3.4 Configuration PayPal (Optional, for paypal payments integration)

#### 3.4 Installing Yarn

yarn install

#### 3.5 Configuration PayPal (Optional, for paypal payments integration)
Copy config/config.yml.copy to config/config.yml to set your configurations.

Edit config/config.yml with your own paypal settings:
Expand All @@ -97,33 +103,33 @@ Edit config/config.yml with your own paypal settings:
signature: YOUR_PAYPAL_SIGNATURE
business: YOUR_PAYPAL_BUSINESS

#### 3.5 Configuration Application host and protocol
#### 3.6 Configuration Application host and protocol
Edit config/config.yml with your own application settings:

app_host: APP_HOST_HERE # e.g. osb.mydomain.com
app_protocol: http

#### 3.6 PDF configuration
#### 3.7 PDF configuration
Using following command in terminal to get path of wkhtmltopdf library path that is already installed on system.

which wkhtmltopdf
Edit config/config.yml with your own application wkhtmltopdf path.

wkhtmltopdf_path: YOUR_WKHTMLTOPDF_PATH

#### 3.7 SMTP configuration
#### 3.8 SMTP configuration
To make smtp_settings, go to settings, open a company edit form by clicking on a company and provide your smtp details in Mail Config section.


#### 3.8 QuickBooks configuration
#### 3.9 QuickBooks configuration
Edit config/config.yml with your own QuickBooksApp's oauth_consumer_key and oauth_consumer_secret.

quickbooks:
# QuickBooksApp's account key and secret
consumer_key: YOUR_QUICKBOOKS_APP_CLIENT_ID
consumer_secret: YOUR_QUICKBOOKS_APP_CLIENT_SECRET

#### 3.9 Secret key configuration
#### 3.10 Secret key configuration

Run following command on terminal to generate secret key

Expand All @@ -133,12 +139,12 @@ copy this (newly generated) secret key from terminal and past it to the value of

encryption_key: ENTER-YOUR-ENCRYPTED-KEY-HERE

#### 3.10 Configuring Database
#### 3.11 Configuring Database
Copy config/database.yml.copy to config/database.yml and set your mysql username/password. After that run following command from terminal to create MySQL database specified in database.yml file.

rails db:create

#### 3.11 Tables schema and seeding
#### 3.12 Tables schema and seeding

rails db:migrate

Expand All @@ -163,6 +169,16 @@ and use your application in browser by typing in url: localhost:3000

You can also configure Apache, Nginx or any other web/application server of your choice to execute OSB in production mode.

Login credentials
------------

Once you successfully configured OSB, you can use the below credentials to login.

Email: admin@opensourcebilling.org
password: opensourcebilling

You can immediately change the credentials once you successfully logged in.

Customer Portal
------------

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/invoices_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def preview
end

def set_client_currency
@client = Client.find params[:client_id]
@client = Client.find params[:client_id] if params[:client_id].present?
if Settings.currency.eql?('Off') && Settings.default_currency.present?
@currency = Currency.find_by(unit: Settings.default_currency)
else
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="header-center">
<div class="hdr-select-holder intro dashboard-index-false-intro header-intro" data-intro='You can select any company from here'>
<% company = Company.find(current_user.current_company) %>
<div class="company_name"><%= link_to (company.present? && company.logo.present?) ? image_tag(company.logo, class: 'logo-link') : image_tag(asset_url('company_icon.png')), 'javascript:void(0)', class: 'logo-link' %> &nbsp;</div>
<div class="company_name"><%= link_to (company.present? && company.logo.present?) ? image_tag(company.logo_url, class: 'logo-link') : image_tag(asset_url('company_icon.png')), 'javascript:void(0)', class: 'logo-link' %> &nbsp;</div>
<select class="company_select fix-cursor-pointer">
<option value="" disabled selected><%= get_company_name%></option>
<% filter_select_by_companies.each do |company| %>
Expand Down
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@

User.delete_all
u=User.new
u.email = "opensourcebilling@gmail.com"
u.email = "admin@opensourcebilling.org"
u.password = "opensourcebilling"
u.password_confirmation = "opensourcebilling"
u.user_name = "OSB"
Expand Down

0 comments on commit 7978d62

Please sign in to comment.