- Clone the repo via SSH or https.
- Goto your project path (i.e. ~/marketplace-ui) in Finder/File Explorer.
- Rename
**database.sample.yml**
to**database.yml**
. - Then open
**Terminal**
and goto path~/marketplace
- Type
bundle install
(assuming you have bundler installed) to install the necessary gems for the project.
Assuming you have Mac or Linux installed you need the following components via Homebrew(brew) or Advanced Packing Tool(apt).
- Postgresql
- Paperclip
- Nodejs(for Messaging system) which can also be downloaded from nodejs website.
####Linux
- In your ~/marketplace-ui path type
rake db:create db:migrate db:seed
- Start your Unicorn server by typing
rails s
- Goto your browser and type
lvh.me:3000
for Client/Professional login orlibra.lvh.me:3000
for Professional only login to get started.
####Mac
- In your ~/marketplace-ui path type
rake db:create db:migrate db:seed
- Since Multi-Domain setup, Goto this folder
/private/etc
and edit the**hosts**
file and add this line
127.0.0.1 lvh.me
after existing127.0.0.1 localhost
- Start your Unicorn server by typing
rails s -b 0.0.0.0
. - Goto your browser and type
lvh.me:3000
to get started.
- For getting localities list for different areas, create a folder in your
**~/User**
directory namedvs_csv
and insidevs_csv
addlocalities.csv
and then goto terminal and run this rake command
rake import:localities_from_csv
- To setup and get 2-Factor-Authentication working for your professional profile run this rake command
rake users:build_google_secret