You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,26 @@
4
4
5
5
> API for ZSSN (Zombie Survival Social Network)
6
6
7
+
## Setup choices
8
+
9
+
I dockerized this API because i don't know nothing about evaluator machine, so i recommend user docker.
10
+
I used some gems like interactor and shoulda-matchers to target best practices in development like `skinny controller and fatty models`. I did all asked features in gist and write tests to cover all source code, you can see coverage executing tests (see section bellow) and open `index.html` in coverage directory.
11
+
7
12
## Dependencies
8
13
9
14
First, you need to got `Docker` and `docker-compose` installed on your machine to run this project. Access [here](https://docs.docker.com/compose/install/#install-compose) to get instructions of how install theses dependencies.
10
15
16
+
But if you prefer use your local database, all you have to do is change include adpater gem of your preference in Gemfile, and change `database.yml` file.
17
+
18
+
```sh
19
+
default: &default
20
+
adapter: postgresql # <-- your adapter here
21
+
encoding: unicode
22
+
host: db # <-- normally localhost
23
+
username: postgres # <-- username
24
+
password: # <-- password
25
+
```
26
+
11
27
## Install
12
28
13
29
After properly install `docker-compose`, you can use the command bellow to build:
0 commit comments