Skip to content

Commit

Permalink
Merge pull request #2039 from RajeshPaul38/sustaining-engineering-11779
Browse files Browse the repository at this point in the history
Updated readme; Added missing steps and how to fix guidelines;
  • Loading branch information
tas50 authored Jul 9, 2021
2 parents bf4a3da + 268e81e commit 8703265
Showing 1 changed file with 37 additions and 21 deletions.
58 changes: 37 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ These instructions are tested and verified on macOS Catalina (10.15)
```shell
brew install redis
```
Run the redis server using command:
```
redis-server --daemonize yes
```
#### Development Environment
Expand All @@ -98,42 +104,52 @@ These instructions are tested and verified on macOS Catalina (10.15)
1. Make sure you have the Supermarket repo cloned to your machine, then change into that directory
```
$ cd supermarket-repo
```
```
$ cd <supermarket-repo>
```
1. Then change into the src
```
$ cd src/supermarket
```
```
$ cd src/supermarket
```
1. Install required gems:
1. Install Bundler gem
```
gem install bundler:2.1.4 --user-install
```
```
$ bundle
```
1. Install required gems:
```
bundle install
```
N.B. you might get the following errors. Listing them with the fixes.
- Error installing gem: ***ruby-filemagic***
- Fix -> `brew install libmagic`
- Error installing gem: ***mimemagic***
- Fix-> `brew install shared-mime-info`
1. Create the database, migrate the database and seed the database:
```
$ bundle exec rake db:setup
```
```
$ bundle exec rails db:setup
```
1. Add required Postgres extensions.
```
$ psql supermarket_development -c 'create extension plpgsql'
$ psql supermarket_development -c 'create extension pg_trgm'
```
```
$ psql supermarket_development -c 'create extension plpgsql'
$ psql supermarket_development -c 'create extension pg_trgm'
```
N.B. Ignore if the above 2 commands gives error: extenstion already exists.
1. Start the server:
```
$ bundle exec foreman start
```
```
$ bundle exec foreman start
```
If you receive errors, make sure that redis and Postgres are running.
N.B. ***If you receive errors, make sure that redis and Postgres are running.***
## Setting up Auth
Expand Down

0 comments on commit 8703265

Please sign in to comment.