From 69868a6899c09e13da52a2675349ccbab2858995 Mon Sep 17 00:00:00 2001 From: Kapil Viren Ahuja Date: Fri, 10 Feb 2017 14:32:46 +0530 Subject: initial commit --- Readme.MD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Readme.MD diff --git a/Readme.MD b/Readme.MD new file mode 100644 index 0000000..9e0bf2b --- /dev/null +++ b/Readme.MD @@ -0,0 +1,59 @@ +# Setup Instructions + +## Clone the repository + +``` +docker-compose up -d (if you want to run in background) +``` + +http://localhost:5050/browser/ (fire up pgAdmin) + +Web: + - host: vainsocial_postgres_web + - port: 5432 + - user: vainweb + - password: vainweb + - db: vainsocial-web + + Raw: + - host: vainsocial_postgres_raw + - port: 5432 + - user: vainraw + - password: vainraw + - db: vainsocial-raw + + + Running the Vainsocial.com + > only needed if you are running the container for the first time + + ``` + docker-compose exec workspace bash + ``` + + > once logged into the container + + ``` + cd /var/www/vainsocial + cp .env.dev .env // you can select the .env file of your choice + composer update + php artisan migrate + ``` + +> the following will only work on a Unix based container. If you are using Windows, you will need to have NPM installed locally on your windows machine. + + ``` + npm update + npm run dev + ``` + + > Setup your hosts file by adding the following entry + ``` + 127.0.0.1 vainsocial.dev + ``` + + open browser and run the following to view the home page + ``` + vainsocial.dev/home + ``` + + \ No newline at end of file -- cgit v1.3.1