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
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Entain test task
2
2
3
+
### Tools and technologies used:
4
+
5
+
1. Go
6
+
2. PostgreSQL
7
+
3. Docker
8
+
4. Makefile
9
+
5. Postman
10
+
3
11
All database tables are in `migrations` folder. To run them, use `make` command.
4
12
5
13
1.`make migrate-up` - to run up migrations
@@ -43,7 +51,7 @@ Postman collection is in `postman` folder to test endpoints.
43
51
1. Create `.env` file in root folder and add all required variables from `.env.example` file
44
52
2. To run migrations you should have migrate tool installed. You can install it with `brew install golang-migrate` (https://github.com/golang-migrate/migrate/tree/master/cmd/migrate)
45
53
3. To run any `make` command you should have `make` tool installed. You can install it with `sudo apt install make` command (https://linuxhint.com/install-make-ubuntu/)
46
-
4. Run `make migrate-up` command to run migrations and create all tables with test user (user_id: 63e83104-b9a7-4fec-929e-9d08cae3f9b9)
54
+
4. Run `make migrate-up` command to run migrations and create all tables with test user (user_id: `63e83104-b9a7-4fec-929e-9d08cae3f9b9`)
47
55
5. Run `make run` command to run application
48
56
6. Take a look at `postman` folder to take collection for testing all endpoints
49
57
@@ -53,6 +61,6 @@ This user has 50 amount of his balance for testing.
53
61
## To run application in docker container:
54
62
55
63
1. Create `.env` file in root folder and add all required variables from `.env.example` file
56
-
2. To run docker container you should have `docker` and `docker-compose` tools installed (Tested on docker version 20.10.22, build 3a2c30b and docker-compose version 1.26.2, build eefe0d31)
64
+
2. To run docker container you should have `docker` and `docker-compose` tools installed (Tested on `docker version 20.10.22, build 3a2c30b` and `docker-compose version 1.26.2, build eefe0d31`)
57
65
3.`docker-compose up` - to run application in docker container
58
66
4.`docker-compose down` - to stop application in docker container
0 commit comments