Skip to content

Commit

Permalink
Merge branch 'release/0.1.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilgkrishnan committed May 9, 2022
2 parents 09b0cad + 677f462 commit 13c5a19
Show file tree
Hide file tree
Showing 74 changed files with 1,600 additions and 331 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ NEW_RELIC_LICENSE_KEY='replace with newrelic licence key'
REDIS_URL='redis://127.0.0.1:6379/12'

# Stripe
STRIPE_PUBLISHABLE_KEY="pk_test_NOgckL4BT40aggiIRMiU8O2g00yhQxp1yS"
STRIPE_SECRET_KEY="sk_test_0upT8snNIjPXvOteHwRKhOHK00dGraUDu5"
STRIPE_PUBLISHABLE_KEY="stripe_publishable_key"
STRIPE_SECRET_KEY="stripe_secret_key"
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"no-console": ["error", { "allow": ["warn", "error"] }],
"comma-dangle": ["error", "never"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
"@typescript-eslint/no-unused-vars": ["error"],
"key-spacing": 1,
"keyword-spacing": 2,
"object-curly-spacing": [1, "always"],
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,6 @@ gem "stripe"

# Background job processing adapter
gem "sidekiq"

# PDF generator
gem "grover"
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ GEM
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (4.1.0)
combine_pdf (1.0.22)
matrix
ruby-rc4 (>= 0.1.5)
concurrent-ruby (1.1.9)
connection_pool (2.2.5)
countries (4.1.3)
Expand Down Expand Up @@ -191,6 +194,9 @@ GEM
foreman (0.87.2)
globalid (1.0.0)
activesupport (>= 5.0)
grover (1.1.1)
combine_pdf (~> 1.0)
nokogiri (~> 1.0)
hashie (5.0.0)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -391,6 +397,7 @@ GEM
rubocop-rspec (2.8.0)
rubocop (~> 1.19)
ruby-progressbar (1.11.0)
ruby-rc4 (0.1.5)
ruby-vips (2.1.4)
ffi (~> 1.12)
ruby2_keywords (0.0.5)
Expand Down Expand Up @@ -491,6 +498,7 @@ DEPENDENCIES
factory_bot_rails
faker
foreman
grover
image_processing (>= 1.2)
jbuilder (~> 2.11)
letter_opener
Expand Down
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# README
<p align="center">
<img src="https://getmiru.com/assets/images/image01.svg?v=097ef681" width="200" />
<br/>
</p>

## Miru-Web
Miru is an open-source tool, designed to make time tracking, invoice management, and accounting easy for small businesses worldwide. It is a platform for organizations to help them streamline their workflow.

Saeloun timetracking application.

### Installation
## Installation

1. Clone repo to local

Expand Down Expand Up @@ -37,7 +38,9 @@ nvm install $(cat .nvmrc)
```
brew install postgresql
```

6. Install Redis

```
brew install redis
```
Expand All @@ -61,8 +64,8 @@ cp .env.example .env
```

10. Update `DATABASE_URL` in `.env` as per local `psql` creds. For example, if
the user is `root` and password is `password`, change the variable as
`DATABASE_URL="postgres://root:password@localhost/miru_web?encoding=utf8&pool=5&timeout=5000"`
the user is `root` and password is `password`, change the variable as
`DATABASE_URL="postgres://root:password@localhost/miru_web?encoding=utf8&pool=5&timeout=5000"`

11. Update `APP_BASE_URL` in `.env` to `localhost:3000`
12. Run `bin/rails db:create RAILS_ENV=development` to create the database
Expand Down Expand Up @@ -150,3 +153,11 @@ command
cd cypress
yarn run cy:open:staging
```

## Deployment

### Heroku one-click deploy

You can deploy Miru on Heroku using the one-click-deployment button:

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/saeloun/miru-web/tree/main)
53 changes: 36 additions & 17 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,40 @@
{
"name": "MiruWeb",
"name": "Miru",
"repository": "https://github.com/saeloun/miru-web",
"addons": [
{
"plan": "heroku-postgresql:hobby-dev"
}
],
"description": "Miru is an open-source to for time tracking, invoice management, and accounting easy for small businesses worldwide.",
"website": "https://getmiru.com/",
"logo": "https://getmiru.com/assets/images/image01.svg",
"success_url": "/",
"env": {
"MAILER_SENDER": {
"description": "The email address to use as the sender",
"value": "miru-review@saeloun.com"
"SECRET_TOKEN": {
"description": "A secret key for verifying the integrity of signed cookies.",
"generator": "secret"
},
"RACK_ENV": {
"description": "Environment for rack middleware.",
"value": "production"
},
"EMAIL_DELIVERY_METHOD": {
"description": "The email delivery method to use",
"value": "letter_opener_web"
"RAILS_ENV": {
"description": "Environment for rails middleware.",
"value": "production"
},
"JWT_SECRET_KEY": {
"description": "The secret key for the JWT",
"value": "fc68556be046e0972ccd4608d10aa36f01adf7fd9eeae05c792308f973be79c055f0a72f8b76cd5aa0740622d263a93c2b3f6e51ad2873afda81e6a0724884c2"
"APP_BASE_URL": {
"description": "Base URL for the application.",
"value": "https://CHANGE.herokuapp.com"
}
},
"formation": {
"web": {
"quantity": 1,
"size": "FREE"
},
"worker": {
"quantity": 1,
"size": "FREE"
}
},
"image": "heroku/ruby",
"addons": [ "heroku-redis", "heroku-postgresql"],
"buildpacks": [
{
"url": "heroku/nodejs"
Expand All @@ -28,7 +43,11 @@
"url": "heroku/ruby"
}
],
"scripts": {
"postdeploy": "bundle exec rails db:migrate && bundle exec rails db:seed"
"environments": {
"test": {
"scripts": {
"postdeploy": "bundle exec rails db:migrate && bundle exec rails db:seed"
}
}
}
}
11 changes: 11 additions & 0 deletions app/assets/images/Connect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions app/assets/images/ConnectPaypal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 13c5a19

Please sign in to comment.