@@ -6,43 +6,67 @@ coffee drinkers.
6
6
7
7
## Development Setup
8
8
9
- Ensure you have ` rbenv ` installed on your machine.
9
+ 1 . Clone the repository onto your machine
10
+
11
+ $ git clone
[email protected] : vigetlabs /GroundRules.git
12
+
13
+ 2 . Enter into the project directory
14
+
15
+ $ cd GroundRules
16
+
17
+ 3 . Ensure you have ` postrgres ` installed
18
+
19
+ $ brew install postgres
20
+
21
+ 4 . Ensure the ` postgres ` server is running
22
+
23
+ $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
24
+
25
+ 5 . Ensure you have ` rbenv ` installed on your machine
10
26
11
27
$ brew install rbenv
12
28
13
- Ensure you have Ruby ` 2.4.1 ` installed on your machine.
29
+ 6 . Ensure you have Ruby ` 2.4.1 ` installed on your machine
14
30
15
31
$ rbenv install 2.4.1
16
32
17
- Install Bundler
33
+ 7 . Install Bundler
18
34
19
35
$ gem install bundler
20
36
21
- To get the application running, first install gem dependencies with Bundler:
37
+ 8 . To get the application running, first install gem dependencies with Bundler:
22
38
23
39
$ bundle install
24
40
25
- Copy the example environment dotfile and fill out:
41
+ 9 . Install ImageMagick
42
+
43
+ $ brew install imagemagick
44
+
45
+ 10 . Copy the example environment dotfile and fill out:
46
+
47
+ $ cp config/secrets.example.yml config/secrets.yml
48
+
49
+ 10a. Keys can be generated by using the following command:
26
50
27
- $ cp secrets.example.yml secrets.yml
51
+ $ bundle exec rake secret
28
52
29
- Copy the sample database configuration file and fill out:
53
+ 11 . Copy the sample database configuration file and fill out:
30
54
31
55
$ cp config/database.example.yml config/database.yml
32
56
33
- Run npm install
57
+ 12 . Run npm install
34
58
35
59
$ npm install
36
60
37
- Create, migrate and seed the database:
61
+ 13 . Create, migrate and seed the database:
38
62
39
63
$ rake db: create db: migrate db: seed
40
64
41
- Start the server:
65
+ 14 . Start the server:
42
66
43
- $ rails s
67
+ $ rails s
44
68
45
- Now the application will be available at ` localhost:3000 ` .
69
+ Now the application will be available at ` localhost:3000 `
46
70
47
71
## Deploying Changes
48
72
0 commit comments