summaryrefslogtreecommitdiff
path: root/Readme.MD
blob: 3ba9ad4a839022e368c749b0f8669f949cbd5e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 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: vaindock_postgres_web
 - port: 5432
 - user: vainweb
 - password: vainweb
 - db: vainsocial-web

 Raw:
 - host: vaindock_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
 php artisan key:generate
 ```

> 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
 ```