forked from karrtikiyer-tw/bahmni-shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up development Environment for Mac.
Mritunjay Dubey edited this page Sep 18, 2017
·
1 revision
This guide will explain how to setup development environment for the application on MacOS. This application assumes that bahmni(mysql and psql Databases) are running on a vagrant box.
- Install R.
- Install RStudio.
- Setup passwordless ssh from your machine to bahmni box. ssh vagrant@ should not ask for a password.
- Clone the repository
git clone [email protected]:ICT4H/bahmni-shiny.git
- Go to the cloned folder and run
R -f install_packages.R
. It will take some time for the first time. - Open project in RStudio.
- Create a plugins and preferences folder and refer them in the
app.properties
. - Setup users see the section.
touch shiny.sqlite
sqlite3 shiny.sqlite
create table users(username varchar primary key, password varchar);
insert into users values('demo','$2a$12$aZyMtR.kaSqrpK2h/ID43utwz8bS6g.aovQW9z0/kvhlcnwYPfsfe');
- The above hash is the result of bcrypt::hashpw('12345') in R, Where 12345 is the password.
- To give a different password go to R console and run
bcrypt::hashpw('<password>')
and use the output as password ininsert into statement
. - The above sqlite file path will be the value of
sqliteDbFilePath
inapp.properties
.